Exercise 1:
sum_day = 87
week = sum_day//7
day = sum_day%7
print(sum_day," days including ",week," weeks,and ",day," days")
Homework:
science = 90
math = 97
english = 86
avg_score = (science + math + english)/3
d = avg_score - english
print("Average score is :",avg_score,",Difference between English and average is ",d," points")
[…] Level 1| |____Unit 1 HelloWorld| |____Unit 2 Print| |____Unit 3 Magic Variable| |____Unit 4 Basic Operations| |____Unit 5 Data Types| |____Unit 6 Data Input| |____Unit 7 GUI design I| |____Unit 8 GUI design […]