Sep-21-2017, 02:11 AM
List = ["1","2","3","5" ]
while True:
print("hello")
number = (int(input("give me a number? ")
if i % 2 = 0:
print(L)
File "<ipython-input-3-4bed4d992b03>", line 5
if i % 2 = 0:
^
SyntaxError: invalid syntax
I want the code to add an even number to the list if the user inputs an even number.
while True:
print("hello")
number = (int(input("give me a number? ")
if i % 2 = 0:
print(L)
File "<ipython-input-3-4bed4d992b03>", line 5
if i % 2 = 0:
^
SyntaxError: invalid syntax
I want the code to add an even number to the list if the user inputs an even number.