Hangman Game for beginners |Introduction | Python Project for beginners

  Рет қаралды 51,885

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

Пікірлер: 31
@Princereal7869
@Princereal7869 Жыл бұрын
Good project for begineers👌
@Ronaldo-t7j6k
@Ronaldo-t7j6k 8 ай бұрын
import random print("Let's Play Hangman!! ") print("You Have Only 6 Lives.So Try To Guess The Word With In 6 Attempts.Good Luck!! ") list_fruits=["apple","banana","orange","strawberry","grape","pineapple","kiwi","mango","watermelon","papaya"] random_fruit=random.choice(list_fruits) length=len(random_fruit) list_1=[] count=1 chances=10 k=0 i=0 for i in range(length): list_1.append('_') print(list_1) while chances!=0: if chances==0: break if k==length: break letter=input(" Guess a Letter: ") for j in range(length): if random_fruit[j]==letter: if list_1[j]=='_': list_1[j]=letter i=1 print(list_1) k=k+1 if count==1: print(""" _________ | | | | | | |______________ """) elif count == 2: print(""" _________ | | | O | | | |_____________""") chances=5 elif count == 3: print("""_________ | | | 0 | | | | |_____________""") chances=4 elif count == 4: print("""_________ | | | 0 | /| | | |_____________""") chances=3 elif count == 5: print("""_________ | | | O | /|\\ | | |_____________""") chances=2 elif count ==6: print("""_________ | | | O | /|\\ | / | |_____________""") chances=1 elif count == 7: print("""_________ | | | O | /|\\ | / \\ | |_____________""") chances=0 print("You Loose The Game Better Luck Next Time") if i == 1: i=0 break if letter not in list_1: count=count+1 print(f"You Gussed {letter} That Is Not Present In The Word.so you lose a life") if count == 2: print("""_________ | | | O | | | |_____________""") chances=5 elif count == 3: print("""_________ | | | O | | | | |_____________""") chances=4 elif count == 4: print("""_________ | | | 0 | /| | | |_____________""") chances=3 elif count == 5: print("""_________ | | | O | /|\\ | | |_____________""") chances=2 elif count == 6: print("""_________ | | | O | /|\\ | / | |_____________""") chances=1 elif count == 7: print("""_________ | | | O | /|\\ | / \\ | |_____________""") chances=0 print("You Loose The Game Better Luck Next Time") if k==length or chances!=0: print("You won the match") else: print("byyy") Mam I developed my own code check it once mam😊😊
@khazimahjavaid6307
@khazimahjavaid6307 11 ай бұрын
Great job.
@cugansteamid6252
@cugansteamid6252 9 күн бұрын
thanks for explaining the game
@chamara854
@chamara854 Жыл бұрын
Your explanation is imazine 🌊
@manfredmasiko4444
@manfredmasiko4444 Жыл бұрын
Helpful indeed 🙏
@beking2532
@beking2532 Жыл бұрын
Apko dekh ne hi ate h ❤
@ravitejanarala327
@ravitejanarala327 Жыл бұрын
Beautiful ❤
@AmnaRajnaz
@AmnaRajnaz 4 ай бұрын
Different days-different hairstyles ❤🤩
@Ashwinkotturu
@Ashwinkotturu 4 ай бұрын
Good observation
@Steven-ez6qp
@Steven-ez6qp 6 ай бұрын
Hi ❤ Hangman Such a nice Fun game I like to let my niece win and She says Yesss lol I got to Hang the mean men 😵 lolol HA HA Soo cute 🥰
@-vijayKumar-oc5fb
@-vijayKumar-oc5fb Жыл бұрын
Thank you
@jillakirthan858
@jillakirthan858 Жыл бұрын
Super super explanation ma'am
@DARK_RYZEN
@DARK_RYZEN Жыл бұрын
print("let's play hangman") word=len("apple") words=("apple") for i in range(word): print("_",end=" ") print(" ") print(f"the word containing {word} you have 6 lives to guess word") for i in range(6): enter = str(input("enter your input word")) if words==enter: print("you made it perfectly") break else: print("you got hanged")
@ramjimishra5511
@ramjimishra5511 Жыл бұрын
Mam please🙏 interview preperation ki playlist bna do bhot helpful rhegi kahi bhi nhi milti please🙏🙏🙏🙏🙏🙏
@glps369
@glps369 Жыл бұрын
Thank You So Much
@AmitKumar-ts2pi
@AmitKumar-ts2pi Жыл бұрын
Pattern design plzxz😮😊
@jeethusingh3145
@jeethusingh3145 Жыл бұрын
Thank you so much mam ❤
@rongalamanindra5279
@rongalamanindra5279 Жыл бұрын
Thank you mam
@shubhampatil9221
@shubhampatil9221 Жыл бұрын
Hello mam , please provide google drive link for all the notes of python series
@vijayramakrishnan6838
@vijayramakrishnan6838 Жыл бұрын
Mam what is system flow chart can u plz explain and what is the difference. a videio will be better.
@Rakhu-e2f
@Rakhu-e2f Жыл бұрын
I think you should teach how to make this game in C++ using SFML or raylib instead of python ..C++ is best choice for game development
@koteswararaopeddiboyina2617
@koteswararaopeddiboyina2617 10 ай бұрын
we want tic tac toe game using python 🤞🤞
@BishalSaha-xo4mx
@BishalSaha-xo4mx Жыл бұрын
Can I get to see that hangman_stages.py file to know how you have worked with that figure in later video
@praveenag2266
@praveenag2266 Жыл бұрын
Which algorithm is used here?
@SAI_LINGESH
@SAI_LINGESH Жыл бұрын
Can you share the code?
@sakshayaniv9068
@sakshayaniv9068 Жыл бұрын
Chess game 😥
@Haseeb_555
@Haseeb_555 Жыл бұрын
sabr karo ._.
Hangman Game for beginners |Flowchart | Python Project for beginners #lec54
5:02
Jenny's Lectures CS IT
Рет қаралды 36 М.
Hangman Game in Python | Python Project #3 | Python Project for beginners #lec55
31:43
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 86 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 79 МЛН
Python Project 2 | Password Generator in Python | Python for Beginners #lec49
22:20
How To Create Hangman Game in Python | Python Project Ideas
19:57
Types of Arguments in Python | Python Tutorials for Beginners #lec61
21:11
Jenny's Lectures CS IT
Рет қаралды 103 М.
Let's code a HANGMAN GAME in Python! 🕺
25:07
Bro Code
Рет қаралды 21 М.
5 Mini Python Projects - For Beginners
1:41:08
Tech With Tim
Рет қаралды 2,9 МЛН
How to build HANGMAN with Python in 10 MINUTES
9:53
Kite
Рет қаралды 471 М.
Python Project 1 | Rock Paper Scissors Game in Python | Python for Beginners #lec39
25:49
Learn Python With This ONE Project!
55:04
Tech With Tim
Рет қаралды 1,9 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 86 МЛН