+ 1
How i get output without creat a list?
for i in range(5): Print ("hello") >>>hello hello hello hello hello But i want >>> 1 2 3 4 5
3 Respuestas
+ 8
https://code.sololearn.com/cqdAT0c7BeCv/?ref=app
Hope this helps
+ 3
for I in range(5):
print(f"{i} ")
+ 1
for i in range(1,6):
print(i)
or
i=1
while i<6:
print(i)
i+=1