+ 1
How do I put input in the range "for i in range(5):"
Whatever I do I can't put an input command inside there. Right in between the brackets of range. Please help me. for i in range(5):
2 Antworten
+ 2
Just add the integer Constructor like below
for i in range(int(input("Enter a Number"))):
print(i)
+ 1
Thanks Qudusayo.