Hi, I'm trying to make a program that prompts for input a certain number of times, like say the user inputs 5, it will prompt for other input five times. I get the number from the user, but how do I make a for loop that uses that variable instead of a number?
This is one of the things I tried, but it doesn't work. Any help please? Thank you!
num = raw_input("Enter a number: ")
list = []
for item in range(num):
item = input("Enter: ")
list.append(item)