Sunday, June 18, 2023

Repeating text program in Python 3

Code of program 1:

for i in range (1, 5):
    print ("repeating text")

Code of program 2:

a=input("a=")
a=int(a)
b=input("b=")
b=int(b)
for i in range (a, b):
    print ("repeating text")

No comments:

Post a Comment