How to build HANGMAN with Python in 10 MINUTES

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ค. 2024
  • This Python tutorial for beginners shows you step-by-step how to build a basic command-line program: Hangman! The game will allow for user input, and will also output a visual of the hangman alongside the word that’s being guessed.
    ⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. We made this TH-cam channel and Kite to help you be more productive: kite.com/download/?...
    ***************************************
    SUBSCRIBE for more Python tips, tutorials, and project breakdowns! ► th-cam.com/users/KiteHQ?sub_...
    JOIN our online community of people who want to level up their developer skills ►
    / 505658083720291
    Follow us on Twitter ► / kitehq
    ***************************************
    ADDITIONAL RESOURCES:
    Find the code from this tutorial here: github.com/kiteco/python-yout...
    6 Python Tips and Tricks YOU Should Know ►
    • 6 Python Tips and Tric...
    How to NAIL LeetCode Questions- Valid Parentheses ►
    • HOW TO NAIL LeetCode I...
    Sqlite 3 Python Tutorial in 5 minutes- Creating Database, Tables & Querying ► • Sqlite 3 Python Tutori...
    ***************************************
    Don’t forget to subscribe :)
    th-cam.com/users/KiteHQ?sub_...
    STAY TUNED:
    Kite ► kite.com/
    Twitter ► / kitehq
    TH-cam ► / @kitehq
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 478

  • @snowy8926
    @snowy8926 4 ปีที่แล้ว +660

    I guess I'm the only person here who actually searched for this video lol

  • @victoriatomokocountryman6129
    @victoriatomokocountryman6129 4 ปีที่แล้ว +169

    I don't think I've ever clicked to watch an ad in my entire life until now; totally worth it.

  • @DragonRazor9283
    @DragonRazor9283 3 ปีที่แล้ว +97

    I was stuck for hours and hours trying to figure out how to replace those underscores with the user’s guess under multiple occurrences. This video saved my life.

    • @KiteHQ
      @KiteHQ  3 ปีที่แล้ว +8

      So glad to we could save you, Vaiterius! Thanks for the love.

    • @littlesheep8644
      @littlesheep8644 3 ปีที่แล้ว +3

      I'm having the same problem, what did you do?

    • @braddaily8688
      @braddaily8688 3 ปีที่แล้ว +16

      @@littlesheep8644 2 months late, but, if you're still stuck on this, he
      1: split up the individual letters of word into a separate list word_as_list using list(word)
      2: used the enumerate function, which returns the index value and letter for each character of a string, as a list of tuples ex: ( for a word 'hey', [(0, 'h'), (1, 'e'), (2, 'y')] ) (he essentially dissected the word into individual letters, each stored in a list alongside their index value as a tuple (index_value, letter) )
      3: iterated over the list of tuples, for each tuple using *i* for the index value and *letter* for the letter
      4: appended only the index values of the guessed letters to another list, called indices
      5: iterated over the indices he collected, and used the index value to jump to the position in word_as_list where the corresponding letter was guessed, and replaced the underscore in word_as_list with the guessed letter (word_as_list would look like ['_', '_', '_'] before, and look like ['_', 'e', '_'] afterwards if 'e' was hypothetically the guessed letter)
      6: he used ' '.join to convert the list format of word_as_list into a string and assign the new string as word_completion (remember word_as_list was just word_completed, but chopped up)
      Don't know if you've figured it out already, but hope this helps!

    • @sikedelics2922
      @sikedelics2922 3 ปีที่แล้ว

      Same, the only difference for me was that I was stuck even if the letter was just once in the word. I’m still a little bit stuck, but maybe I’ll understand it.

    • @sarahharrison5798
      @sarahharrison5798 2 ปีที่แล้ว

      Me but i made mine before seeing this

  • @wqltr1822
    @wqltr1822 2 ปีที่แล้ว +35

    As a absolute beginner to programming, I made my coded a game of hangman myself to then compare it to a more optimized version.
    These are the three lessons I've learned:
    1. A lot of the time python has some QOL functions that save you 10 lines of code.
    2. Prepare individual functions and then have code which runs a combinations of functions, which gives you a much more understandable and cleaner program.
    3. This one ties into the first, really think about what you are doing and what you're planning to.
    This video was very good btw!

  • @bruinsmash8836
    @bruinsmash8836 3 ปีที่แล้ว +145

    Cool video, a bit fast for a beginner, but overall very helpful.

    • @noobnub7305
      @noobnub7305 3 ปีที่แล้ว

      for beginners, LMAO

    • @zestastic3359
      @zestastic3359 2 ปีที่แล้ว +30

      @@noobnub7305 Creating hangman is a beginner coding project.

    • @friday8118
      @friday8118 2 ปีที่แล้ว +5

      I was gonna say the same thing.

    • @writershard5065
      @writershard5065 ปีที่แล้ว +11

      @@noobnub7305 Always gotta have egotistical programmers in these comment sections lol.

  • @KiteHQ
    @KiteHQ  4 ปีที่แล้ว +161

    If you've scrolled down to the comments, let's play our own game of hangman...
    _ _ T _ _ _ _ P _ _ _ _

  • @ianpimenta9197
    @ianpimenta9197 3 ปีที่แล้ว +15

    I just started learning how to code and this video has been super helpful. My first code was a madlibs game, but I wanted to try a game that was more responsive to user input: hang man! This video is so great because it provides a solid base for the viewer to expand on. Im going to try to add 3 different difficulty levels that the user can select which will adjust the amount of guesses per word. Im sure a more experienced programmer could add a gui. Awesome vid!

  • @asdfasf
    @asdfasf 2 ปีที่แล้ว +4

    brilliant video - thanks. My kids are learning at school and this will be very good to push their thinking.

  • @sylviasobol4815
    @sylviasobol4815 3 ปีที่แล้ว +5

    What a great code! Thanks for posting, made my life so much easier when I compared it to my code )

  • @Emmi_casei
    @Emmi_casei ปีที่แล้ว +1

    This was 10 mins for you. We made it in 1 hour after thinking about what you have done and why it has done and all. But afterall this whole video was so helpful...☺️, so thanks buddy...

  • @fumiya9078
    @fumiya9078 11 หลายเดือนก่อน

    This is lightspeed compared to the other tutorials I watched and I love it

  • @bern1223
    @bern1223 3 ปีที่แล้ว +3

    Amazing tutorial, thanks for the ad!

  • @deotheoverlord
    @deotheoverlord 4 ปีที่แล้ว +4

    This is really cool, thank you man!
    instantly subscribed to your channel.

  • @thefactlord8820
    @thefactlord8820 4 ปีที่แล้ว +7

    Great Vid. I used some techniques I learned, in my own vid! Great for a beginner

  • @aritrapal2870
    @aritrapal2870 3 ปีที่แล้ว

    i searched it and absolutely loved it

  • @soumitramandal
    @soumitramandal 4 ปีที่แล้ว

    Wow this was fun. Totally worth it.

  • @0_-
    @0_- 4 ปีที่แล้ว +4

    This is the first video I saw of you!

  • @henningreichenbach4945
    @henningreichenbach4945 4 ปีที่แล้ว +11

    Very good video and extremly helpful for New programmers like me who just need an example to copy. Can you guys please make more mini project videos like this. There are really not a lot of coding examples for python on youtube

    • @KiteHQ
      @KiteHQ  4 ปีที่แล้ว

      Check out our Python Projects playlist and Beginner Tutorials playlist for more! Glad you enjoyed the video. th-cam.com/video/etSRnPp9H8s/w-d-xo.html

    • @neodong6060
      @neodong6060 2 ปีที่แล้ว

      caaaaaaaaaaaaaaap. more python tutorials than there are js i believe

  • @VocalsOfLocalsOfficial
    @VocalsOfLocalsOfficial 4 ปีที่แล้ว

    that was nice, you made it look easy & speedy

  • @alfredvonhofsten4010
    @alfredvonhofsten4010 3 ปีที่แล้ว +21

    this man. types. pretty fast

  • @jaganmayeesahoo4210
    @jaganmayeesahoo4210 4 ปีที่แล้ว

    Am delighted to see it, thank you

  • @AllTypeGaming6596
    @AllTypeGaming6596 4 ปีที่แล้ว +7

    I see your ad in my feed lots time but i didn't click it 😅 and finally i click today

  • @abhinavsai1654
    @abhinavsai1654 2 ปีที่แล้ว

    This video is legit awesome!! I love this!!!!!

  • @wholesomedegenerate869
    @wholesomedegenerate869 3 ปีที่แล้ว

    Thanks! A beginner here and I didn't understand everything but thanks!

  • @Nala-Potter
    @Nala-Potter 3 ปีที่แล้ว

    code is really clear on a bigger screen awesome.

  • @billychan9065
    @billychan9065 3 ปีที่แล้ว +81

    "simple hangman game" [cry]

    • @ounsspace2573
      @ounsspace2573 3 ปีที่แล้ว +3

      It's so hardddddddddddd(cryyyyyyyyyyyyyyyyyyyyyyyyyyyyyy)

  • @friday8118
    @friday8118 2 ปีที่แล้ว

    This was quick af, I think I am gonna have to keep searching.

  • @JustinInBlack
    @JustinInBlack 2 ปีที่แล้ว

    thanks, you saved my life

  • @guninchoudhary4921
    @guninchoudhary4921 3 ปีที่แล้ว

    omg!! this works thanks for this video bro.

  • @ahmetsenol6104
    @ahmetsenol6104 ปีที่แล้ว

    You are so fast that i dont even want to do it anymore :D It was like trying to catch a bus.

  • @pizzamccheese9278
    @pizzamccheese9278 3 ปีที่แล้ว +3

    how do you draw the hangman's gallow thingy
    i.e. the stick on the left side and his body

  • @benjamintunaru7214
    @benjamintunaru7214 4 ปีที่แล้ว +5

    I really like your videos! thank you !

    • @KiteHQ
      @KiteHQ  4 ปีที่แล้ว +1

      Glad you enjoy them. Thank you!

    • @ryxnzippedem5144
      @ryxnzippedem5144 4 ปีที่แล้ว

      Whats ur snap

  • @Rich171090
    @Rich171090 2 ปีที่แล้ว +1

    Does this take into account words that have the same letter more than once? For example "Cheese"? It checks to see whether the guessed letter is in the hidden word but does it check to see if it appears more than once? Thank you

  • @Nobody-xp6ip
    @Nobody-xp6ip 6 หลายเดือนก่อน +1

    I made a version of Hangman similar to this but without the visual hanging man.
    In mines, there is a hint system as well

  • @stephaniebeals5936
    @stephaniebeals5936 4 ปีที่แล้ว +2

    how can you do word_as_list=list(word_completion) if word_completion is not introduced until later in the loop?

  • @seenivasagans5399
    @seenivasagans5399 4 ปีที่แล้ว +2

    thank you

  • @ihebbenali2745
    @ihebbenali2745 3 ปีที่แล้ว +15

    i made this game before watching this video and tried to compare the codes, your code is very simple,short and a bit advanced from mine but many similarlies. mine has a hint system and second player mode, where the 1st player enters a hint and word for the 2nd player to guess. in the hint sysetem you can chose to either show 1 letter if the word is less than 4 letters long, or 2 letter if the word is longer. or you can chose to get the type of the word such as verb,adj, animal...

    • @ihebbenali2745
      @ihebbenali2745 ปีที่แล้ว +1

      @Gotta Go no realy i had very basic knowledge of python and basic sense for game dev. you just have to know a bit of both to be honest. mostly the logic of how games should be coded, but i didnt go too deep in that. and then i gave it a shot.
      also i cant beleive im replying in 10 min for a reply on my comment that's 1 year old😂😂. i realy have to find something to do with my life lmao

    • @natasdabsi1138
      @natasdabsi1138 ปีที่แล้ว

      @@ihebbenali2745 update?

  • @ntrlshorts958
    @ntrlshorts958 3 ปีที่แล้ว +2

    nice tutorial, I tried your advice out for hangman python but for some reason there is a "invalid syntax error" and I did it step by step is their anyway you can look at it and help me fix it?

  • @james2529
    @james2529 4 ปีที่แล้ว +2

    oh wow I was playing around trying to make this myself today and I got stuck about how to replace a letter at the right index. I didn't know you could just do [index] ! I am both happy with myself for getting all the way to that point and a little annoyed i didn't know about that function

  • @timothyivanov9447
    @timothyivanov9447 4 ปีที่แล้ว +2

    THIS DUDES WRITING IS GOD SPEED ALIN

  • @Spongebob_Squarepants
    @Spongebob_Squarepants 4 ปีที่แล้ว +3

    i didn't feel like using completed code or typing the stages of the hangman, so i turned it into Russian hangman where every time the player gets a letter wrong, a bullet will be added in the chamber. So each time they miss a letter, the probability of them losing gets higher.

  • @aboynamedscienerd3524
    @aboynamedscienerd3524 4 ปีที่แล้ว +6

    This is the first time I clicked to watch an ad.

  • @1979nige
    @1979nige 4 ปีที่แล้ว +2

    awesome video, im using a .txt file for the game to choose a random word but when its counting the characters of the word its counting one at the end of the word even though there is no space or additional character?? anyone else had this issue?

  • @c0ntinuous26
    @c0ntinuous26 4 ปีที่แล้ว

    What color theme do you use in VS Code?

  • @maedevaezi4428
    @maedevaezi4428 3 ปีที่แล้ว

    Thanks for this, so helpful.Can you make one with the appjar gui version please

  • @tuttorosso9903
    @tuttorosso9903 3 ปีที่แล้ว

    Very clean!!

  • @jassgupta9115
    @jassgupta9115 4 ปีที่แล้ว

    are you doing the coding in python script mode or interactive mode?

  • @mrsteampunkoctopus6524
    @mrsteampunkoctopus6524 3 ปีที่แล้ว +1

    I am using this for a Computer Science project

  • @neucoarc
    @neucoarc 2 ปีที่แล้ว +2

    I am a student at a python course, and as a little activity, they (my teachers) wanted us to make a hangman game. This video helped a lot! Huge thanks to you ❤❤ (Sorry for the bad english.)

  • @1UPBR0
    @1UPBR0 3 ปีที่แล้ว

    Hey, I'm having trouble with lining up my code. Do you have any tips?

  • @gyeumkim4536
    @gyeumkim4536 4 ปีที่แล้ว +3

    I got error; Unable to import 'words' pylint(import-error) [2, 1] how to solve it?

  • @Abdullah-Alhariri
    @Abdullah-Alhariri 3 ปีที่แล้ว

    thanks dude

  • @shafatara4177
    @shafatara4177 3 ปีที่แล้ว +4

    print(“AMAZING video!”)

  • @mohammadamintorabi8415
    @mohammadamintorabi8415 ปีที่แล้ว +1

    Can someone explain line 32 (or expand it): indicies= [i for i, letter in enumerate(word) if letter == guess]. I don't understand first "i" (i for ....)? Is for loop nested in If statement or the other way?

  • @JorgeRamirez01
    @JorgeRamirez01 3 ปีที่แล้ว

    I don't know what to say, I see the code and I like it, I watched the video and well, I didn't learn anything, it's like copying and pasting a piece of code I found in stackoverflow, it works but, you know what I mean. Good job though, I think.

  • @akankshayeola3472
    @akankshayeola3472 3 ปีที่แล้ว +6

    what does 'i for i' mean here? Really trying to figure out the indices = [ i for i, letter in enumerate(rand_word) if letter==guess] part, any explanation will be helpful! Thanks

    • @jhintuoso8137
      @jhintuoso8137 2 ปีที่แล้ว +1

      Its because of function enumirate()

  • @jaysonkxm3058
    @jaysonkxm3058 4 ปีที่แล้ว +4

    I tried to import the word list from your code using the exact same thing I cant.

  • @tjw937
    @tjw937 3 ปีที่แล้ว

    Is there a way to prompt a hint for each word? I made my own word list that's much shorter. 🤔

  • @janpoonthong
    @janpoonthong 4 ปีที่แล้ว +1

    [i for i, letter in enumerate(word) if letter == guess]
    Means:
    indices = []
    for i, letter in enumerate(word):
    if letter == guess:
    indices.append(i)

  • @rantinghippie6796
    @rantinghippie6796 4 ปีที่แล้ว

    Does this work in Jupiter notebook? Trying to import the wordlist and it’s not working. Keeps saying module not found?

  • @EduardoRodrigues-hl7ne
    @EduardoRodrigues-hl7ne 2 หลายเดือนก่อน

    Great video!!!!!!!!!!!!!!

  • @nicholasmillington3624
    @nicholasmillington3624 3 ปีที่แล้ว

    Hi,
    Very New to python i have grabbed the follow the script but is showing the following error:
    line 147, in
    main()
    NameError: name 'main' is not defined
    I am running on a Mac OS, will this be the issue? if so is there a way to resolve? Any feedback is welcome!
    Thank You,
    Nick

  • @CHILLAXING
    @CHILLAXING 3 ปีที่แล้ว +4

    This was a great video! Can you go a little slower next time? Thank you. :)

  • @Wabuh-Wabuh
    @Wabuh-Wabuh 3 ปีที่แล้ว +2

    Can we have more walkthrough videos? I learn best that way. it allows me to correlate code with actions visually. PLS!!!

  • @thatgamer_2397
    @thatgamer_2397 3 ปีที่แล้ว +1

    Does this work for the android app called Pydroid 3??

  • @aasshmangupta9553
    @aasshmangupta9553 2 ปีที่แล้ว

    This Dude: Fast as a leopard but in writing
    Me: *Taking 10 years to write the whole code*

  • @Seth-ki9pb
    @Seth-ki9pb 2 ปีที่แล้ว

    What IDE are you using

  • @loiamofficial
    @loiamofficial 4 ปีที่แล้ว

    /print_to_kite(amazing creation)_=true!!

  • @pranaliparikh1292
    @pranaliparikh1292 2 ปีที่แล้ว

    Great video but could you help me figure out why the file is opening on Sublime Text instead of initiating the game? Thank you

  • @typeshit0
    @typeshit0 4 ปีที่แล้ว +2

    Can you make it so that a user can type in a word, and the other user has to guess it

  • @Tweston3ny
    @Tweston3ny ปีที่แล้ว

    any help implementing *display_hangman(tries)*? i'm totally stuck thanks in advance

  • @g.d.z_youtube
    @g.d.z_youtube 3 ปีที่แล้ว

    Did not understand the line word = get_word() in the while loop in the main function. The word is already got value before the while loop so no one will win by the first guess word. Am I wrong?

  • @jetspray3
    @jetspray3 ปีที่แล้ว

    There is one thing I don't understand. The statement len(guess) == len(word). Is it possible that as guess is made by the user would the letter be appended? I hope you respond.

  • @maya195
    @maya195 ปีที่แล้ว

    how did u get that dark mode theme in python?

  • @jennifersandford9059
    @jennifersandford9059 4 ปีที่แล้ว

    which version of python r u using

  • @capyprograma
    @capyprograma 3 ปีที่แล้ว +3

    I made this game with Pygame and I finished it after 10 hours in one day 😂

  • @utkarsh2660
    @utkarsh2660 ปีที่แล้ว

    i actually went through this video repeatedly for 3 days and after that only was able to write the code myself

  • @benedikt7846
    @benedikt7846 3 ปีที่แล้ว +2

    How can you make it print space " " in between the underscores shown for the word, for instance I copied the code given and it prints "________" instead of " _ _ _ _ _ _ " which is kind of hard to read so you can count the letters. Anybody got pointers?

    • @mayedalshamsi
      @mayedalshamsi 2 ปีที่แล้ว

      In line 10 where you set an underscore for each letter, add a space after the underscore, inside the quotation marks.
      "_ " instead of "_".

  • @ademolaodusanya5678
    @ademolaodusanya5678 ปีที่แล้ว

    Please how did you create that module using vs code

  • @yuvrajwalia1797
    @yuvrajwalia1797 4 ปีที่แล้ว +8

    Great video! I tried writing the code, and I found an error on Line 102. Instead of "return stages[tries]" it should be "return stages[tries-1] since its an array with only 6 elements. So it goes 0-1-2-3-4-5, and there's no stage 6.

    • @KiteHQ
      @KiteHQ  4 ปีที่แล้ว +2

      Hi ɣʋⱴraʝ Walia, thanks for exploring the code and sharing thoughtful feedback! If the stages array had just six elements, you’d be correct in using tries-1 for the index, but this array actually has seven elements (initial display + 6 after each mistake), so using tries by itself is the appropriate index value.

    • @mayedalshamsi
      @mayedalshamsi 2 ปีที่แล้ว +2

      Get rekt, Yuvraj!

  • @nakito8398
    @nakito8398 3 ปีที่แล้ว

    I tried this code but it doesn't display anything is this working in version 3.9? I'm just new in programming tho

  • @heyman7891
    @heyman7891 3 ปีที่แล้ว

    If you have a plain list of words how do you implent this ' and this , symbol on every word??

  • @dzefir5895
    @dzefir5895 4 ปีที่แล้ว +1

    Kite, how did you make your code open and you play?

    • @vlkryvoided9674
      @vlkryvoided9674 3 ปีที่แล้ว

      Go to terminal on a mac, and type in the prompt "python (whatever you named the hangman file)" I'm not sure how to do it on windows though.

  • @ghostmighty8729
    @ghostmighty8729 4 ปีที่แล้ว

    hey i wanted to know if there is a way to import it to a discord bot ?

  • @501877934
    @501877934 ปีที่แล้ว +1

    Can someone explain to me what this part of the code does and how it works? I feel like I understand the other bits other than this
    indices = [i for i, letter in enumerate(word) if letter == guess]
    for index in indices:
    word_as_list[index] = guess
    word_completion = "".join(word_as_list)
    Thank you very much!

  • @Paapathikids
    @Paapathikids 4 ปีที่แล้ว

    What is the difference between pytest and python selenium

  • @magiconfire
    @magiconfire 4 ปีที่แล้ว

    best video ever dude, by the way can i use python 2.7.13 for this

    • @KiteHQ
      @KiteHQ  4 ปีที่แล้ว

      Glad you enjoyed the video. :) And no, Kite will be retiring Python 2 support.

  • @aasshmangupta9553
    @aasshmangupta9553 2 ปีที่แล้ว

    can you make a list of all the commands of codes in python (not the one used in this) and send the link in your video discription. also i would really appreciate it a lot!

  • @nasajain
    @nasajain 4 ปีที่แล้ว +4

    For some reason, in line 53, when I type
    if guessed:
    print("Congrats!")
    It is returning an error saying the the ":" is an invalid syntax. Can you please explain what to do to fix it?

    • @SachinNath-dj4lk
      @SachinNath-dj4lk 4 ปีที่แล้ว +1

      Try typing if guessed == True:

    • @nicolatesla5607
      @nicolatesla5607 3 ปีที่แล้ว +1

      Type True in place of guessed

    • @nasajain
      @nasajain 3 ปีที่แล้ว +2

      Thanks guys! Will try these and get back

    • @robynsoar6574
      @robynsoar6574 4 วันที่ผ่านมา

      @@nasajain Bro never got back

    • @nasajain7631
      @nasajain7631 2 วันที่ผ่านมา

      @@robynsoar6574 Oops 💀
      It prob worked tho

  • @adamsykes3792
    @adamsykes3792 4 ปีที่แล้ว

    does kite work with idle

  • @abdulaoru7576
    @abdulaoru7576 3 ปีที่แล้ว +1

    Cool video

  • @mafulynch
    @mafulynch 4 ปีที่แล้ว +3

    Why when you dreaw the stages one arm is represented as \\ and one leg is \\?
    Great video, a bit fast to follow for begginers

    • @beetal3850
      @beetal3850 4 ปีที่แล้ว +2

      in a string \ is a special character which lets you put a double quote in a double quote so you have to put 2

    • @mafulynch
      @mafulynch 4 ปีที่แล้ว

      @@beetal3850 thanks for your reply!

    • @himanshujain7014
      @himanshujain7014 4 ปีที่แล้ว

      Do you y to try too in yp

  • @gcode32753
    @gcode32753 4 ปีที่แล้ว +1

    I made a similar game on turbo c++, but python is way shorter to code

  • @caleb-fg1nl
    @caleb-fg1nl 2 ปีที่แล้ว +1

    Can someone explain why triple " was used instead of the usual single " for the stages list

    • @HeadofSails
      @HeadofSails ปีที่แล้ว

      I think triple is when you want the output to be wrapped/chunks - formatting

  • @jeff.gef123
    @jeff.gef123 4 ปีที่แล้ว +2

    idk why 77 people dislike THIS VIDEO

  • @ilijanedelkovski3201
    @ilijanedelkovski3201 3 ปีที่แล้ว

    hey i tried this and it says that return stages[tries] is an unexpected indent

  • @martonmagyar5840
    @martonmagyar5840 8 หลายเดือนก่อน

    i keep getting line 2, in
    from words import word_list whenever is try to start the game

  • @charlottealbrecht1415
    @charlottealbrecht1415 3 ปีที่แล้ว

    What is the website u are using?

  • @paratiel4295
    @paratiel4295 4 ปีที่แล้ว +1

    love it

  • @perrymelenhorst6941
    @perrymelenhorst6941 3 ปีที่แล้ว

    else:
    ^
    IndentationError: expected an indented block
    Process finished with exit code 1
    it keeps saying this when i try to do the "Not a valid guess" part.. WHat does it mean?

    • @nasajain
      @nasajain 3 ปีที่แล้ว

      Perry Melenhorst Can you send the if statement as well, or whatever lines are before it until the corresponding if (just copy and paste it or something)❓