Nov-26-2018, 04:17 AM
This code works on Codecademy, but when I use it in Python I get an error message:
SyntaxError: multiple statements found while compiling a single statement
Why doesn't this code work in Python? Here is the code.
SyntaxError: multiple statements found while compiling a single statement
Why doesn't this code work in Python? Here is the code.
mylist = [2, 3, 4] result = [] for number in mylist: result.append(number*2) print result