Thursday, February 20, 2020

for loop print in one line in python language

for i in range(0,30,5):
    print("loop",i,end=" ")

output:
loop 0 loop 5 loop 10 loop 15 loop 20 loop 25 

No comments:

Post a Comment

python class topic video