syntax trouble shooting - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: syntax trouble shooting (/thread-29602.html) |
syntax trouble shooting - RadicalRhno353 - Sep-11-2020 Hi! I am new to python (and coding in general) and for one of my first projects I am making a hangman program. but i can't seem to get my syntax to work. I don't know if this matters but I am using repl.it python engine. Any form of help would be greatly appreciated! Here is my code life = len(HANGMAN) - 1 words = ["hangman", "backpack", "bodywash", "clothing", "computer", "python", "program", "glasses", "sweatshirt", "sweatpants", "mattress", "friends", "clocks", "biology", "algebra", "suitcase", "knives", "ninjas", "shampoo", "chemistry", "sololearn", "bottle", "physics","flowers’,‘touch’,"machine","delirious","rambunctious","fixed","scab","girls","humdrum","lizards","spoon","rush","testy","homeless","clammy","pest","purring","leave","gun","lose","fall","bumpy","aberrant","squealing","story","cut","classy","colorful","slip","crooked","dazzling","make","helpful","envious","afterthought","indulge","wacky","compete","mixed","monkey","rainstorm","hysterical","effect","rude","slip","aloof","Earthquake", "curious"] word = words[random.randint(0, len(words) - 1)] guess = list(len(word) * '*') RE: syntax trouble shooting - buran - Sep-11-2020 you have mixed quotes at flowers and touch and because this is not the full code, we cannot run it for ourselves always post the full code and the full traceback you get RE: syntax trouble shooting - RadicalRhno353 - Sep-11-2020 (Sep-11-2020, 08:08 PM)buran Wrote: you have mixed quotes atThank you buran! I'll be sure to post the full program next time. |