Page 107 - Trackpad_V2.1_class8
P. 107
21 st
Century #Media Literacy
Skills
Video based question Scan the
QR Code
Watch the video and answer the question.
In which conditon for and while loops are used?
21 st #Critical Thinking
LAB ACTIVITY Century
Skills #Technology Literacy
Visit your computer lab and perform the following actions:
▶ Write a program in Python to find whether a given number is divisible by 5 or not.
▶ Write a program in Python to compute the factorial of a given number.
▶ Write a program using a while loop in Python to print the multiplication table of 25.
▶ Write a program to enter the age of a person and find out whether he is retired or not. The age
of retirement is 60 years.
▶ A school has the following rules for the grading system:
Below 20 – F 20 to 40 – E 40 to 60 - D
60 to 80 – C 80 to 90 – B Above 90 - A
Write a program to enter the marks and print the corresponding grade in Python.
▶ Write a Python program to display the following pattern:
5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
▶ Write a Python program to display alternate numbers for a given range.
▶ Write a Python program to display the digits of a number.
▶ Write a Python program to display the sum of even and odd numbers separately within a given
range.
Control Structures in Python 105

