TORONTO KIDS COMPUTER CLUB | Tuesday Thursday 15:00 Python Practice 20.07.07.
17851
post-template-default,single,single-post,postid-17851,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.8.0,vc_responsive

Tuesday Thursday 15:00 Python Practice 20.07.07.

08 Jul Tuesday Thursday 15:00 Python Practice 20.07.07.

Question 1

Make a variable and assign a number to it (any number you like). Then display your variable using print.


Question 2

Modify your variable, either by replacing the old value with a new value, or by adding something to the old value. Display the new value using print.


Question 3

Make another variable and assign a string (some text) to it.
Then display it using print.


Question 4

Make a variable for DaysPerWeek, HoursPerDay, and MinutesPerHour (or make up your own names), and then multiply them together. Use print() to show the result.


Question 5

People are always saying there’s not enough time to get everything done. How many minutes would there be in a week if there were 26 hours in a day? (Hint: Change the HoursPerDay variable.) Use print() to show the result.


Question 6

Write coding to solve the following question: Three people ate dinner at a restaurant and want to split the bill. The total is $35.27, and they want to leave a 15 percent tip. How much should each person pay? Use print() to show the result.


Question 7

Write coding to solve the following question: Calculate the area and perimeter of a rectangular room, 12.5 meters by 16.7 meters. Use print() to show the result.


Question 8

Write coding to convert temperatures from Fahrenheit to Celsius. The formula for that is:

C = 5 / 9 * (F - 32)

Use print() to show the result.

for example:
you can make a variable called f, then write:
f = 300
then using formula to write coding to convert from 300 Fahrenheit into Celsius.
No Comments

Sorry, the comment form is closed at this time.