for i in range(5):
mylist[i]=int(input("Input an integer: "))
Do I really still have to define mylist before the for loop before I can actually use it? At the first loop it works fine but at the second loop it will show a NameError do I have to use a different inut method or what?
NameError: name 'mylist' is not defined
mylistahead of the loop or you'll getIndexErrorandNameErrorproblems