It is used to don’t do automatically at the end of the print, which is set by default. Here it is necessary as we want to display the word letter by letter in the same line.
i am a bit late here, but i have a mistake in the code. When the user guesses the word, i say "Congratulations! The word was {word}." But when the user does NOT guess the word, it should say "Game Over". Instead, the program still gives "Congratulations ...". Anyone knows what might be the isuue? I checked everything according to the code in the video but still cannot figure it out.
yes i had the exact same issue its an easy fix, where it says "while not done: at the very end of that group of code it should end in print(" ") i think he deleted it without showing it in the vid
Hi i am a beginner, i did this the noob way without looking for any tutorial. What i can't fix is if the matched word is correct until the end then print the winner. Another issue: in the third word if the player types the wrong alphabet the loop goes back to the beginning, it does not ask for the third only. I know this loop looks stupid but i am trying really hard to get this done. You made it look so easy while i did all this :( import random hangman = True tries = 4 print(f"Welcome to hangman. You start with {tries} health. Try to guess the missing word :)") name_list = ['Ford', 'Lamborghini', 'Einstein', 'Pythonista', 'Shopaholic', 'Nurmagomedov', 'Stalin', 'Tupac', 'Balenciaga', 'Chrysler', 'Felton', 'Hanks', 'Bonnie', 'Hallden', 'Clever'] alphabetical_order = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] computer_choice = random.choice(name_list) the_f_a_choice = computer_choice[0] guesses = [] # check_len_word = print("The numerical order of the word is", len(computer_choice), "and the first alphabet is... ->", the_f_a_choice, "
At the beginning prompt user for an input, define the 'word' as that input, and then start the game. But if you were making this multiplayer, you'd be able to see the input in the terminal so it wouldn't be very secretive
Why do I get this error msg? Traceback (most recent call last): File " .py", line 17, in if guess.lower not in word.lower(): TypeError: 'in ' requires string as left operand, not builtin_function_or_method
i bit late maybe but i love how u make these quite easy to understand tutorials!
"Alright so I don't think that I need to explain the basic hangman rules to you, but essentially..."
*explains the rules of hangman*
XD
I love your channel! Thanks to you
I started to learn programming again after a long break.
how's everything going after 10 months. are you now creating graphics, i'm ecstatically curious.
How do you remove the word from the list once its used? I tried methods for both strings and lists and neither work.
1:35 and add Uppercase:)
Kudos, really easy to follow the code!
do some advance programmes, would love to learn
i have made some in the past and I will make more in the future :)
@@NeuralNine i hae seen all of them already
have
@@ahmedrobi6507 Ahmed I hope you're doing ok, where you from?
@@googleaccount7252 yeah im completely fine buddy
Sorry, I have a question why would you use end=" " in the code?
It is used to don’t do automatically
at the end of the print, which is set by default. Here it is necessary as we want to display the word letter by letter in the same line.
@@guillermoalonso1420 Thanks mate, this helped a lot.
Hey, great tutorial. But I don't know if the variable done was important though. It could be made easier with just True and in the end with all()
Damn the thumbnail xd
what about it? ^^
@@NeuralNine I saw it first before reading the title and I got a bit scared 🤦♂️
How to give hints for the words ....pls reply
I have a bug my game continues to ask for inputs even after i have guessed all the letters
i'm probably late, but i have the same problem
@@endrernningen3637 did you ever find a solution?
I would love to see more content on hacking really like it
du cary
st mich durch Informatik durch
Immer gerne
Love the content man. Hey btw may i know what is the name of the intro song.
Hey bro it's hard to understand but thank you you made easy
i am a bit late here, but i have a mistake in the code. When the user guesses the word, i say "Congratulations! The word was {word}." But when the user does NOT guess the word, it should say "Game Over". Instead, the program still gives "Congratulations ...". Anyone knows what might be the isuue? I checked everything according to the code in the video but still cannot figure it out.
yes i had the exact same issue its an easy fix, where it says "while not done: at the very end of that group of code it should end in print(" ") i think he deleted it without showing it in the vid
It was a perfect teaching
Hi i am a beginner, i did this the noob way without looking for any tutorial. What i can't fix is if the matched word is correct until the end then print the winner. Another issue: in the third word if the player types the wrong alphabet the loop goes back to the beginning, it does not ask for the third only. I know this loop looks stupid but i am trying really hard to get this done. You made it look so easy while i did all this :(
import random
hangman = True
tries = 4
print(f"Welcome to hangman. You start with {tries} health. Try to guess the missing word :)")
name_list = ['Ford', 'Lamborghini', 'Einstein', 'Pythonista', 'Shopaholic', 'Nurmagomedov', 'Stalin',
'Tupac', 'Balenciaga', 'Chrysler', 'Felton', 'Hanks', 'Bonnie', 'Hallden', 'Clever']
alphabetical_order = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
computer_choice = random.choice(name_list)
the_f_a_choice = computer_choice[0]
guesses = []
# check_len_word =
print("The numerical order of the word is", len(computer_choice), "and the first alphabet is... ->", the_f_a_choice,
"
how it is going one year after this tutorial?
give up
love the channel but wich python are you using?
This should work on any python 3 version
everyything but the words = f.readlines() im using spyder can someone tell me if I'm doing anything wrong?
is it possible to do a custom prompt word or phrase rather than a premade one from a list?
At the beginning prompt user for an input, define the 'word' as that input, and then start the game. But if you were making this multiplayer, you'd be able to see the input in the terminal so it wouldn't be very secretive
ty vermy much bro love the conttents keep it up
How do I get the python menu on the side bar?
Use Pycharm. Its at the left by default
nice one,keep it up and i got a request can you do some tuts about kivy please
never really used it so I guess I can't make tutorials on that soon :/
@@NeuralNine I will keep waiting if you happen to do them,otherwise i learn a lot from your tuts
what about the drawing of the hangman?
thanks so much bro
Awesome 👍! Thank you!
Bro please crop in to the screen a bit hard to read code at 480p
Nice video! Thanks!
My error is File "/Users/Bakbakum/PycharmProject/SnakeGame/main.py", line 18
if guess.lower() not in word.lower():
IndentationError: unexpected indent
in line 17 the for letter not letters
i have a problem on line 21 it says break is outside the loop
careful with identation
yeah same
i need help in line 8 it said syntax error please help me
Thanks!!!
Why do I get this error msg?
Traceback (most recent call last):
File " .py", line 17, in
if guess.lower not in word.lower():
TypeError: 'in ' requires string as left operand, not builtin_function_or_method
Oops..., solved. I forgot to add brackets after "guess.lower". Stupid mistake.
Great Content
Thanks 🎮🕶💻
Do fluid simulation
Super!
thx man
My thing keeps on saying Game Over! Even though I got it right
damn love this
NiCe GaInZ bRo
Remember me when you are famous 😄
?
most of this I havent learnt yet
It is awsome.
cool
Cool
Next step after coding how we can run that game
run the code
I'm onion and I code
No pictures at all? how boring....
好名
First
that was fast ^^