Posted at 22:07h
in
Uncategorized
by admin
Question:
Important!!!! Please read question through carefully, if you have any questions, please do not hesitate to contact me through weChat. The problem solving thinking of this question will help you understand future computer competition questions.
You and your friend have come up with a way to...
Posted at 18:07h
in
Uncategorized
by admin
You can do Question 1~ 3 in Python IDLE:
Question 1.
Use float() to create a number from a string like '12.34'. Make sure the result is really a number!
Question 2.
Try using int() to create an integer from a decimal number like 56.78. Did the answer get rounded...
Question
You supervise a small parking lot which has N parking spaces. Yesterday, you recorded which parking spaces were occupied by cars and which were empty. Today, you recorded the same information. How many of the parking spaces were occupied both yesterday and today?
Input Specification:
The first line of input...
Posted at 22:18h
in
Uncategorized
by admin
Question 1.
Write a program to print a multiplication table (a times table). At the start, it should ask the user which table to print. The output should look something like this:
Sample Input:
Which multiplication table would you like? 5
Sample Output:
Here's your table:
5 x 1 = 5
5 x 2...
Posted at 22:15h
in
Uncategorized
by admin
Question:
Modify the program we made in the class to finish the tk window just like below and make sure no error message shows when we click the button.
You may download the unfinished program from link below
calculator_advanced.py...
Posted at 22:04h
in
Uncategorized
by admin
Question 1.
Write a program (you need to create new file in python) that asks for your first name, then asks for your last name, and then prints a message with your first and last names in it.
Sample input:
First Name: Peter
Last Name: Parker
Sample output:
My name is Peter Parker.
Hint:
Please...