Code: Select all
name='Red'
if len(name) == 4:
print('oops!')
else:
print(name)Typing the same thing into the shell gets a syntax error - multiple statements found while compiling a single statement.
??
Code: Select all
name='Red'
if len(name) == 4:
print('oops!')
else:
print(name)