Ask coding questions

← Back to all posts
Showing EOL Error
PoojaVashist786 (1)

things = ['pen', 'pencil', 'notebook','colors']
print(things)
for thing in things:
print(thing)
print(thing + " My stationary list")
print(things)

this code perfectly working in jupiter notebook but in replit its showing EOL error why?

Comments
hotnewtop
ch1ck3n (1564)
things = ['pen', 'pencil', 'notebook','colors']
print("things")
for thing in things:
  print(thing)
  print(thing + " My statinoary list")
  print(things)

this is the correct code

XanthusPettitt (6)

you have 2 indents while you only need 1