Write python code to read and write data to a file named "university.txt" with the following criteria:
- Change the "university hymn" in "university.txt" file to your favorite song
- Write "Submitted by: Firstname Lastname
In a given sample string, How do you print a double quoted string in between a regular
string using the escape character?
Sample output = It goes without saying, “Time is Money”, and none can deny it.
a. print(“It goes without saying, \“Time is Money\”, and none can deny it.”)
b. print(“It goes without saying, \Time is Money\, and none can deny it.”)
c. print(“It goes without saying” + “Time is Money” + “and none can deny it.”) d. None of the above.
A store manager hypothesizes that the average number of pages a person copies on the store’s copy machine is at least 9. A sample of customers’ orders selected randomly reveals the following:
11
10
10
9
15
20
12
15
12
3
13
20
2
3
16
3
4
19
13
21
3
3
5
11
8
16
10
17
5
2
5
19
Write a program to find the winner of each round of game based on the shape of players chose
Input names into a list. The user will be asked if he wants to add another name or not in the list
Output:
Enter your name: Jose, Dela Cruz
Jose
Dela Cruz
Add Another name: Yes
Enter your name: Juan, Cruz
Juan
Cruz
Add Another Name: No
Stop the program
a=9
b=100
write a program to find a number of perfect squares a to b
5 Display the following pattern using only 2 lines of code. Use only 1 for loop. This problem will require
the use of the multiplication operator (*) and the variable that keeps track of the number of loop
iterations.
Sample output: *
***
*****
*******
*********
***********
*************
Write an if-else statement that compares the age variable with the value 65. If age is greater than or equal to 65, add 1 to senior_citizens. Otherwise, add 1 to non_seniors.
Create a function that will accept a person's name and age, address, birthdate, email, if he/she has a job, what is the job title, and put all those data in a dictionary.
Display the pattren
##
# #
# #
# #
# #
# #