Professional Documents
Culture Documents
Lesson 8 For Loop
Lesson 8 For Loop
3.5.2
Basic
Example 1: Print Hello ten times
than no
PROGRESS
Exercise Set A
Write a Python program that accepts a word from the
user and reverse it.
Write a Python program that prints all the numbers from
0 to 6 except 3 and 6.
Write a Python program which iterates the integers from
1 to n. For multiples of three – print “electronics” and for
multiples of five – print “engineer” and for multiples of
three and five – print “electronics engineer”
Exercise Set B
Write a Python program to create the multiplication table
(from 1 to 10) of a number.
Write a Python program that accepts a string and
calculate the number of digits and letters.
Write a Python program to print all even numbers from a
given numbers list in the same order and stop the
printing if any numbers that come after 237 in the
sequence.