简体   繁体   中英

Python 3 List Syntax Error

I'm still on the process of learning python and recently I started working on a scrip where I created this very long list:

non = ["Hello","Hey","Hi","Greetings","My","Ok","You","He","She","It",
       "They","Our","Mine","Your","Tomorow","Today","If","For"]
print(non)

When I try to run the script it gives me a syntax error on the item "They".

**"The**y",

Thanks in advance for any help :)

@Fargo...if you run the script in this format it will give you a multiline error the proper way to write the code is given in the image link...hope it wiil be useful ... and here is your output -

https://i.stack.imgur.com/dqPMH.png

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM