Help needed in for loop


Replace this line with your code.


please post your code properly and tell us your problem so we can help you :slight_smile:


Please make your question clear and state what your problem is so that we can help you solve things out :slight_smile:


names = []
number = int(input("Enter the number of names:"))
for i in range(number):
name = input('Enter the name',i) # as the loop runs i want to display the number initialized in loop
for i in range(number):

This is the code. i think there is something error in line 4 (at ,i).


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.