Algorithm&programming _G
Algorithm&programming _G
Topics: for Loop, while Loop, Series Printing, Sum of Series, Variable Naming, Flowcharts,
Pseudocode, if-else Statements, and Arithmetic Operators
1. Look at the following variable names and mark them as Valid ( ✅) or Invalid (❌). If
invalid, explain why.
student_name
1stRank
total-Marks
_count
break
2. Write a Python program using a for loop to print numbers from 1 to 10.
3. Write a Python program using a while loop to print even numbers from 2 to 20.
Grade 8 – Revision Worksheet 1 Name: ________
4. Write a Python program to find the sum of the first 10 natural numbers (1 + 2 + 3 +
... + 10).
6. Write pseudocode to print the first 5 multiples of 3 (3, 6, 9, 12, 15) using a for loop.
Bonus Section
1. Write a Python program to print that accepts an integer input from the user,uses a for
loop to calculate factorial of a given number using a for loop.
2. Modify the for loop program to print the numbers in reverse order (10 to 1).