#guessing the number n=20 print("you have 9 guesses") for i in range(1,10): g=int(input("Enter your guess")) if gn: print("Number is smaller than this") l=8-i print("Guesses left",l) elif g==n: print("CONGRATULATIONS YOUR GUESS IS CORRECT") print("NUMBER OF GUSSES TAKEN",i) break end="Game over" end=end.center(50) print(end)
here it is-------> n=25 g=9 t=0 print("Guss the number--") v=int(input()) while (g>0): if(v==n): print("you did this ") g=g-9 print("end of the game") break elif(v
guess = 5 current_guess = 0 number = 18 while (guess>=0): guess = guess-1 current_guess = current_guess+1
inp = int(input("Enter a Number ")) if(inp==number): print("congratulations you have won the guess game in ",current_guess," Number of guesses") break elif(guess==0): print("Game over") break elif (inp>number): print("sorry give a bit more smaller number") print("you have ",guess,"guesses left") elif (inp
num = 13 guess = 9 count = 1 print("You can guess only for 9 times ") while(True): a = int(input("Enter number: ")) if a > num: print("Enter a smaller number") elif a < num: print("Enter a larger number") else: print("Congratulations! Your guess is right and you use ", count , " guesses") guess = guess - 1 if guess == 0: print("You loose") break count = count + 1 if a != num: print("You have ", guess, "guess left")
winning_number=25 gusses_number=1 while(gusses_numberwinning_number: print('its big type smaller num.') elif n5): print("youer gusses chance are finish")
print(" you have 5 chances") i=5 while(i>=0): if i==0: print("game over") break a=10 i=i-1 q=int(input("Type value: ")) if q>a: print(i,"chance left , guessing no is smaller ") elif q
n=18 print("enter guessed number") N1=int(input()) print('no. of attempts is 9') no_of_guesses=1 while(no_of_guesses18: print(" decrease down ur number ") break elif N1
print("FAULTY CALCULATOR") print("1.additon 2.subtraction 3.multiplication 4.division ") choice=int(input()) print("enter the first value ") n1=int(input()) print("enter the second value ") n2=int(input()) if choice==1: if((n1==56 or n2==56) and (n1==9 or n2==9)): print("the additon is 77") else: print("the addition is ",n1+n2) elif choice==2: print("the subtraction is ",n1-n2) elif choice==3: if((n1==45 or n2==45) and (n1==3 or n2==3)): print("the multiplication is 555") else : print("the multiplication is ",n1*n2) elif choice==4: if(n1==56 and n2==6): print("the division is 4") else: print("the division is ",n1/n2)
import random n=random.randint(0,20) p=0 i=9 while True: p=p+1 i=i-1 number=int(input("Enter your number ")) if number>n: print("try with a lesser value ") print("No of guess left ",i) elif number
winNo = 38 guesses = 9 one = 1 print("Welcome to the guess game. Please enter the answer you think is right below:-") while(True): answer = (int(input("Enter your guess here :- "))) if answer>winNo: print("Your number is greater than the answer (Hint- answer is not more than 60)") guesses = guesses-1 print("You have",guesses,"guesses left") if guesses == 0: print("Game over you lost.") break continue elif answer
n=18 for i in range(0,10): num=int(input("enter guess:")) if num==n: print("YOU WON") print("guesses left:",(8-i)) break if num>n: print("THODA KAM KARO BHAI") print("guesses left:",(8-i)) if num
hide = 50 print("welcome to the guess game you have to find hidden number you have 9 guess limits") count = 0 while(True): print("no of guess left>",9-count) guess = int(input("enter number:")) if guess==hide: print("congrats you won the game") count = count +1 break if count==8: print("your guess limit is over ") exit() elif guess>45 and guess 30 and guess < 70: print("you are near to the number ") count = count + 1 continue elif guess > 10 and guess < 90: print("you are still far to the number ") count = count + 1 continue else: print("u are so far ... ") count = count +1 continue print("you won this game after",count-1,'trails')
import random n=random.randint(1,100) t=5 while(1): print("enter your guess you have ",t," chances left") x=int(input()) t=t-1 if t==0: print("you lose") break elif x==n: print("you won") break elif x
print("welcome to star party ") n = int(input("please input integar here in range of 10-> ")) b = n0: for s in range(n): print("*",end='') print(' ') n -= 1
n = 18 guesses = 10 print("You will get 10 chances to guess the number") userInput = int(input("Enter a number: ")) while True: guesses -= 1 if guesses < 10: print(guesses, "guesses are left") if userInput < n: print("Entered number is Smaller, Try some big one :)") userInput = int(input("Enter a number: ")) if guesses == 1: print("0 guess left, Better luck next time") break elif userInput == n: print("Congratulations you have guess the number correctly :)") print("Number of guesses you have taken to guess:", 10 - guesses) break else: print("Entered number is Larger, Try some smaller one :)") userInput = int(input("Enter a number: ")) ############ Made by Kshitij ############
***In case of logical operators agar x and y hain to if x evaluates to True then result is y if x evaluates to False then result is x e.g. print(10 and 20), result => 20 print(0 and 20), result=> 0 agar or hai, like x or y to if x evaluates to True then result is x if x evaluates to False then result is y print(10 or 20), result => 10 print(0 or 20), result => 20
x=85 print("Let's Start our game of guessing number") i=0 while (True): print("GUESS A NUMBER") x1=int(input()) if (x1>x): print("Actual Number is lesser") i+=1 elif x1
Let me make it a little tricky import random x= 100 x = random.randint (1, 100) print("Let's Start our game of guessing number") i=0 while (True): print("GUESS A NUMBER") x1=int(input())
if (x1>x): print("Actual Number is lesser") i+=1 elif x1
n = 18 for i in range(1, 10): a = int(input("Enter a number: ")) if a > n: print("Entered no. is greater, try again!") print("No. of guesses left " + str(9-i) +" ") elif n > a: print("Entered no. is smaller, try again!") print("No. of guesses left " + str(9-i) +" ") elif n == a: print("Well Done!! The no. was " + str(n)) print("No. of guesses took " + str(i)) break
#Python Exercise 4: Astrologer's Stars n =int(input('Enter num1 = ')) n2 = int(input('enter num2 = ')) print("Enter 1 or 0 :") bool_val = input("1 for True value or 0 for False : ") if bool_val == '1': for row in range(n): for col in range(row+1): print('*',end=' ') print() if bool_val == '0': for row in range(n): for col in range(row): print('x',end=' ') print()
Harry Bhai this is Chirag I started a intern program in python . do mahine se office ja raha hunn par office me sare senior busy rehete hai apne project ko lekar . Me mechanical background se hunn to mujhe technically bahut problem ho rahi thi ye sab chije samajh ne me but Thanks to you itna simple language me python sikhane ke liye. par abhi mai thoda slow hunn mujhe raptar pakadne ke liye thoda assist kijiye .
#Sagar L n = 18 g = 1 print("you have only 9 chance to guesses this number. ") while g 18: print("My Number is Less then " + str(choosenumber) + ", Don't Worry Enter again! ") elif choosenumber < 18: print("My Number is greater then " + str(choosenumber) + ", Don't Worry Enter again! ") else: print("Great you won the Game :)") print("you complete game in ", 9-g, "chance") break print(9-g,"chance left to win") g=g+1 if g>9: print("Game Over!")
Learn this knowledge and every programming language so you can earn for your own and be skillful , because I also passed 10th and focus on this to good job
Bhai apne sab kuchh detail mein bolte ho aisa ki keyboard mein key kahan par hai ye bhi love u bhai from odisha 🥰🥰🥰, i want to learn coding and programming
import random attempts = 0 name = input("What is your name? ") random = random.randint(1, 20) print(name + ",","I'm thinking of a number between 1 and 20, What is it?") while attempts < 6: number = int(input("Type your guess: ")) attempts = attempts + 1 (print(attempts,"attemps left")) if number < random: print("Too low. Try something higher") if number > random: print("Too high. Try something lower") if number == random: break if number == random: if attempts = 4: print("Well done,",name + "! It took you",attempts,"attempts. Athough, next time try to get three attempts or lower") if number != random: print("Sorry. All your attempts have been used up. The number I was thinking of was",random)
Bro please help i cant do exercises after even 10 times everytime i got error and i am watching your series regularly and praticing everything pls help😣😣😟
#Here, refer mine #totalg variable means total guesses left.. n = 18 totalg = 9 print("You have to guess a number(n) we setted up. Hint: It's less than 50 You have total of 9 guesses.") while(True): if totalg == 0: if x == n: print("Congo, your guess was right. You took all" + str(9 - totalg) + " guesses. ") break else: print("You ran out of guesses.") break x = int(input("Type here: ")) totalg = totalg - 1 if x > n: print("Number was greater than n. " + str(totalg) + " Guesses left ") elif x < n: print("Number was less than n. " + str(totalg) + " Guesses left ") elif x == n: print("Congo, your guess was right. You took " + str(9 - totalg) + " guesses.") break
guessNumber = 18 i = 0 totalRound = 5 while i < totalRound: i = i +1 print("Enter Number") n = int(input()) if i == totalRound: print("Game Over") elif n < guessNumber: print("Your Entered Number is Less than you have",totalRound-i,"chance") elif n > guessNumber: print("Your Enter Number is Greater than you have",totalRound - i,"chance") else: print("Congratulation you Won into",i,"Hit")
#Python code to guess the number num=68 guess=0 while(1): n=int(input("Guess the number:")) if guess==9: print("We are Sorry!Your number of chances are no more") print("Game over") break if n==num: print("Great job you guess the number within",guess," number of times") print("Game over") break elif n>num: print("Please guess the lower value") elif n
n=50 print("Welcome to my window Lets start playing with the numbers ") print("You have 9 chances to guess the number") count=9 while(True): print('enter the number') i=int(input('')) if(count==0): print('you have exceded the number of tries') print('Thankyou ') break elif (i > n): print("you have enter a graeter number please choice a lesser number to win") count = count - 1 print(f'you have left with {count} choices ') if(count!=0): continue elif(i
import random guesses = 8 g = 0 no = random.randint(0,10) while True: g_no = int(input('Guess the Number')) guesses -= 1 g += 1 if guesses != 0: if g_no > no: print(f"No of Guesses Left = {guesses} " f"Guessed Number is Greater than the original number, Try Again!") elif g_no < no: print(f"No of Guesses Left = {guesses} " f"Guessed Number is Less than the original number, Try Again!") elif g_no == no: print(f'Congratulations!!! You have the right answer.' f'You guessed it in {g} guesses.') break else: print(f'Game Over! {guesses} guesses left') break
THANK YOU Sir python sikhane ke liye pahle mujhe kuchh nhi aata tha but jab se aapke videos dekh rha hu bahut kuchh sikh gaya hoo than you very sir Name:- Brahmdev mahto class:- 9th from:- Indore
import random maxn = 10 n = random.randint(1, maxn) print('Welcome to guess the number game!') print('Guess the number from 1 to %d' % maxn) guess = None while guess != n: guess = int(input('Your try: ')) if guess > n: print('Too high') if guess < n: print('Too low') print('Congratulations, you won!')
#My name is Jaivick Joyce print("Welcome to guessing game you have to guess a number and enter if your guess will be equal the number guessed by computer in 9 guess you will be the winner") chance = 0 while True: guess = int(input("Enter your guess")) if guess>18: print("Your guess is bigger") chance = chance+1 print("you have left", 9-chance , "chance") elif guess
i = 1
a = int(input("enter the numbers of move"))
while(in):
print("no is smaller")
elif (m
Best coding instructor in the world @CodeWithHarry
no = 1
a = 77
while (noa):
print("PLEASE ENTER SMALLER NUMBER")
elif(inp5):
print("GUESS OVER")
#guessing the number
n=20
print("you have 9 guesses")
for i in range(1,10):
g=int(input("Enter your guess"))
if gn:
print("Number is smaller than this")
l=8-i
print("Guesses left",l)
elif g==n:
print("CONGRATULATIONS YOUR GUESS IS CORRECT")
print("NUMBER OF GUSSES TAKEN",i)
break
end="Game over"
end=end.center(50)
print(end)
here it is------->
n=25
g=9
t=0
print("Guss the number--")
v=int(input())
while (g>0):
if(v==n):
print("you did this ")
g=g-9
print("end of the game")
break
elif(v
guess = 5
current_guess = 0
number = 18
while (guess>=0):
guess = guess-1
current_guess = current_guess+1
inp = int(input("Enter a Number
"))
if(inp==number):
print("congratulations you have won the guess game in ",current_guess," Number of guesses")
break
elif(guess==0):
print("Game over")
break
elif (inp>number):
print("sorry give a bit more smaller number")
print("you have ",guess,"guesses left")
elif (inp
num = 13
guess = 9
count = 1
print("You can guess only for 9 times ")
while(True):
a = int(input("Enter number: "))
if a > num:
print("Enter a smaller number")
elif a < num:
print("Enter a larger number")
else:
print("Congratulations! Your guess is right and you use ", count , " guesses")
guess = guess - 1
if guess == 0:
print("You loose")
break
count = count + 1
if a != num:
print("You have ", guess, "guess left")
You are doing such a great work. May Almighty shower all his blessings on you sir. You are such a humble man with a gentle humanity
winning_number=25
gusses_number=1
while(gusses_numberwinning_number: print('its big type smaller num.')
elif n5):
print("youer gusses chance are finish")
print(" you have 5 chances")
i=5
while(i>=0):
if i==0:
print("game over")
break
a=10
i=i-1
q=int(input("Type value: "))
if q>a:
print(i,"chance left , guessing no is smaller ")
elif q
n=18
print("enter guessed number")
N1=int(input())
print('no. of attempts is 9')
no_of_guesses=1
while(no_of_guesses18:
print(" decrease down ur number ")
break
elif N1
print("FAULTY CALCULATOR")
print("1.additon
2.subtraction
3.multiplication
4.division
")
choice=int(input())
print("enter the first value
")
n1=int(input())
print("enter the second value
")
n2=int(input())
if choice==1:
if((n1==56 or n2==56) and (n1==9 or n2==9)):
print("the additon is 77")
else:
print("the addition is ",n1+n2)
elif choice==2:
print("the subtraction is ",n1-n2)
elif choice==3:
if((n1==45 or n2==45) and (n1==3 or n2==3)):
print("the multiplication is 555")
else :
print("the multiplication is ",n1*n2)
elif choice==4:
if(n1==56 and n2==6):
print("the division is 4")
else:
print("the division is ",n1/n2)
import random
n=random.randint(0,20)
p=0
i=9
while True:
p=p+1
i=i-1
number=int(input("Enter your number
"))
if number>n:
print("try with a lesser value
")
print("No of guess left
",i)
elif number
winNo = 38
guesses = 9
one = 1
print("Welcome to the guess game.
Please enter the answer you think is right below:-")
while(True):
answer = (int(input("Enter your guess here :- ")))
if answer>winNo:
print("Your number is greater than the answer (Hint- answer is not more than 60)")
guesses = guesses-1
print("You have",guesses,"guesses left")
if guesses == 0:
print("Game over you lost.")
break
continue
elif answer
Thanks
Mujhe lagta hai main apki video dekh kar ek acca programer bon sakta hu sir
Apki bahut bahut sukrya sir
n=18
for i in range(0,10):
num=int(input("enter guess:"))
if num==n:
print("YOU WON")
print("guesses left:",(8-i))
break
if num>n:
print("THODA KAM KARO BHAI")
print("guesses left:",(8-i))
if num
hide = 50
print("welcome to the guess game
you have to find hidden number
you have 9 guess limits")
count = 0
while(True):
print("no of guess left>",9-count)
guess = int(input("enter number:"))
if guess==hide:
print("congrats you won the game")
count = count +1
break
if count==8:
print("your guess limit is over ")
exit()
elif guess>45 and guess 30 and guess < 70:
print("you are near to the number ")
count = count + 1
continue
elif guess > 10 and guess < 90:
print("you are still far to the number ")
count = count + 1
continue
else:
print("u are so far ... ")
count = count +1
continue
print("you won this game after",count-1,'trails')
thats what legends do i made the same
nice code
In love with python just bcz of you and also I am watching this from playlist
n = 20
guesses = 9
print('you have total chances: ' + str(guesses))
while(guesses > 0 ):
x = int(input('Enter the no. '))
if (x > n):
print('U have guessed higher no.')
elif (x< n):
print('U have guessed smaller no.')
else:
print('BINGO !!!')
break
guesses -= 1
if guesses == 0:
print('You have lost')
break
print('Chances left =' + str(guesses))
import random
n=random.randint(1,100)
t=5
while(1):
print("enter your guess you have ",t," chances left")
x=int(input())
t=t-1
if t==0:
print("you lose")
break
elif x==n:
print("you won")
break
elif x
#guess the Number.
i = 1
a = int(input("Enter the Numbers"))
while(in):
print("No is smaller")
elif(m
print("welcome to star party
")
n = int(input("please input integar here in range of 10-> "))
b = n0:
for s in range(n):
print("*",end='')
print('
')
n -= 1
Please make a course on artificial intelligence
yes and also chat bot
Why don't you check out andrew ng course he is the god of machine learning.
Tum pagal ho
@Konal Pradhan 😂
@@theordinaryhuman7557 ohh! Really? Lemme Check it out...
My brain 🧠 get start
Gaining binary
Thanks Harry bhai
Your students
From maharashtra
Rohan dilip Suryawanshi
n = 18
guesses = 10
print("You will get 10 chances to guess the number")
userInput = int(input("Enter a number: "))
while True:
guesses -= 1
if guesses < 10:
print(guesses, "guesses are left")
if userInput < n:
print("Entered number is Smaller, Try some big one :)")
userInput = int(input("Enter a number: "))
if guesses == 1:
print("0 guess left, Better luck next time")
break
elif userInput == n:
print("Congratulations you have guess the number correctly :)")
print("Number of guesses you have taken to guess:", 10 - guesses)
break
else:
print("Entered number is Larger, Try some smaller one :)")
userInput = int(input("Enter a number: "))
############ Made by Kshitij ############
n=25
number_of_guesses=1
print("Number of guesses is limited to only 5 times: ")
while (number_of_guesses5):
print("Game Over")
***In case of logical operators
agar x and y hain to
if x evaluates to True then result is y
if x evaluates to False then result is x
e.g. print(10 and 20), result => 20
print(0 and 20), result=> 0
agar or hai, like x or y to
if x evaluates to True then result is x
if x evaluates to False then result is y
print(10 or 20), result => 10
print(0 or 20), result => 20
Bhiya thanks a lot❤️❤️❤️ aap ki vedeo bhaut kaam ki hia
Teaching skill Bhut gajab h awesome
thank you so much this video helped me in emergency
x=85
print("Let's Start our game of guessing number")
i=0
while (True):
print("GUESS A NUMBER")
x1=int(input())
if (x1>x):
print("Actual Number is lesser")
i+=1
elif x1
Let me make it a little tricky
import random
x= 100
x = random.randint (1, 100)
print("Let's Start our game of guessing number")
i=0
while (True):
print("GUESS A NUMBER")
x1=int(input())
if (x1>x):
print("Actual Number is lesser")
i+=1
elif x1
Bhai aap ki sari videos save kr raha hun..
Exams khatam hone k bad sab dekhunga...
Recently started Python /and learning /great job sir
n = 18
for i in range(1, 10):
a = int(input("Enter a number: "))
if a > n:
print("Entered no. is greater, try again!")
print("No. of guesses left " + str(9-i) +"
")
elif n > a:
print("Entered no. is smaller, try again!")
print("No. of guesses left " + str(9-i) +"
")
elif n == a:
print("Well Done!! The no. was " + str(n))
print("No. of guesses took " + str(i))
break
#Python Exercise 4: Astrologer's Stars
n =int(input('Enter num1 = '))
n2 = int(input('enter num2 = '))
print("Enter 1 or 0 :")
bool_val = input("1 for True value or 0 for False : ")
if bool_val == '1':
for row in range(n):
for col in range(row+1):
print('*',end=' ')
print()
if bool_val == '0':
for row in range(n):
for col in range(row):
print('x',end=' ')
print()
n=15
a=1
print(" Number of guesses is 5 times ")
while (a5):
print("GAME OVER!!")
break
Smart
Harry Bhai this is Chirag I started a intern program in python . do mahine se office ja raha hunn par office me sare senior busy rehete hai apne project ko lekar . Me mechanical background se hunn to mujhe technically bahut problem ho rahi thi ye sab chije samajh ne me but Thanks to you itna simple language me python sikhane ke liye. par abhi mai thoda slow hunn mujhe raptar pakadne ke liye thoda assist kijiye .
same here , an intern in office trying to learn python
Harry bhai best course every!! Loved your style of teching
THANKS BHAI TEXT TUTORIAL DENE KE LIYE
print("Game Start:- ")
n=18
i=0
while in:
print("Enter a smaller number" )
print(9-i,"Guesses left
")
elif int1
Thank u so much bro you really helped in my exam
Sir bitwise operators pr video bna dijiye plz...
Bhaiya you are so good in explaining thank you so much
#Sagar L
n = 18
g = 1
print("you have only 9 chance to guesses this number.
")
while g 18:
print("My Number is Less then " + str(choosenumber) + ", Don't Worry Enter again!
")
elif choosenumber < 18:
print("My Number is greater then " + str(choosenumber) + ", Don't Worry Enter again!
")
else:
print("Great you won the Game :)")
print("you complete game in ", 9-g, "chance")
break
print(9-g,"chance left to win")
g=g+1
if g>9:
print("Game Over!")
i m only of 13 years
you explanation is very good
Thank you so much sir ❤😊
Harry Bhai is video is very well and knowledgeable
Bhaiya OOPs ke videos or bnavo , series puri kr do aapke channel waali.....I think usme bhut se topics missing hai
@codewitharry
Harry Bhai is easy si prblm he, actually bhai whole programme pr hm "#" ek sath kese lgate hn
Aaila maa! Harry bhaiya jaadu kar rha! Main bhi ab ye jaadu kreaunga
Love the way your teaching 💪💪 Bravo....
yes
anubhav sing bassi ka dailogue buddy love the way you lie copy paste kr diya hai na
6:03 i tried it out it is true not false
agar i ki value 8 hai tab toh yeh 5 se bada hua na
that is why
but i like your way of teaching
Bro the value of i is not 8 he changed from 8 to 5 see
So 5 is not greater than 5
IM 30 Y OLD,AND I PASSED 5TH CLASS ONLY,BUT I JUST LOVE THIS,IS IT THERE ANYTHING SCOPE FOR ME IN PYTHON.
If you practice, hard work and show your passion for python you will definitely success
Learn this knowledge and every programming language so you can earn for your own and be skillful , because I also passed 10th and focus on this to good job
No bro because u r 30 y old but still passed 5th class 🤣🤣
@@kalpanaranjan3010 yeah but it depends somewhat at your English or ur brain (30 year old only passed 5th)
@@kalpanaranjan3010 that's what I said
harry bhai please make a video on Artificial Intelligence using python!!!!please
Please make a course on swift programming language
East to West, apna Harry best😎❣️
Harry, can you please make a tutorial video on binaries for your biggest fan
Bhai apne sab kuchh detail mein bolte ho aisa ki keyboard mein key kahan par hai ye bhi love u bhai from odisha 🥰🥰🥰, i want to learn coding and programming
import random
attempts = 0
name = input("What is your name? ")
random = random.randint(1, 20)
print(name + ",","I'm thinking of a number between 1 and 20, What is it?")
while attempts < 6:
number = int(input("Type your guess: "))
attempts = attempts + 1
(print(attempts,"attemps left"))
if number < random:
print("Too low. Try something higher")
if number > random:
print("Too high. Try something lower")
if number == random:
break
if number == random:
if attempts = 4:
print("Well done,",name + "! It took you",attempts,"attempts. Athough, next time try to get three attempts or lower")
if number != random:
print("Sorry. All your attempts have been used up. The number I was thinking of was",random)
Watching this course again
Bro please help i cant do exercises after even 10 times everytime i got error and i am watching your series regularly and praticing everything pls help😣😣😟
Tell me your code
#Here, refer mine
#totalg variable means total guesses left..
n = 18
totalg = 9
print("You have to guess a number(n) we setted up.
Hint: It's less than 50
You have total of 9 guesses.")
while(True):
if totalg == 0:
if x == n:
print("Congo, your guess was right.
You took all" + str(9 - totalg) + " guesses.
")
break
else:
print("You ran out of guesses.")
break
x = int(input("Type here: "))
totalg = totalg - 1
if x > n:
print("Number was greater than n.
" + str(totalg) + " Guesses left
")
elif x < n:
print("Number was less than n.
" + str(totalg) + " Guesses left
")
elif x == n:
print("Congo, your guess was right.
You took " + str(9 - totalg) + " guesses.")
break
From where do you learn python and thanks for your response🤗🤗
Feel free to dm me on Instagram. Maybe I can help you. Username- logobang
guessNumber = 18
i = 0
totalRound = 5
while i < totalRound:
i = i +1
print("Enter Number")
n = int(input())
if i == totalRound:
print("Game Over")
elif n < guessNumber:
print("Your Entered Number is Less than you have",totalRound-i,"chance")
elif n > guessNumber:
print("Your Enter Number is Greater than you have",totalRound - i,"chance")
else:
print("Congratulation you Won into",i,"Hit")
super explanation harry bhai
Only Harry Bhai can say the 'OR' Operator To relate to 'Dannda'😅😆
#Python code to guess the number
num=68
guess=0
while(1):
n=int(input("Guess the number:"))
if guess==9:
print("We are Sorry!Your number of chances are no more")
print("Game over")
break
if n==num:
print("Great job you guess the number within",guess," number of times")
print("Game over")
break
elif n>num:
print("Please guess the lower value")
elif n
n=50
print("Welcome to my window Lets start playing with the numbers ")
print("You have 9 chances to guess the number")
count=9
while(True):
print('enter the number')
i=int(input(''))
if(count==0):
print('you have exceded the number of tries')
print('Thankyou ')
break
elif (i > n):
print("you have enter a graeter number please choice a lesser number to win")
count = count - 1
print(f'you have left with {count} choices ')
if(count!=0):
continue
elif(i
sir you are the best
Harry bhaiya aap jaldi se comment out kr dete h koi shortcut key h comment out krne ki to btaiye na?
ctrl + /
Love you@@CodeWithHarry bhai
@@CodeWithHarry Awesome trick
@@siddhantdahale2056 shift F10 for quick op if you are use extra keyboard
@@CodeWithHarry thanks bhai
Bhaiya last wala bitwise dimag ka dahi kar diya....
My age is 14 and I first time learn python thank sir
Masha allah, harry bhai aapki vids boht achi hain, geo 100 saal
Great Bro.
Thank you so much sir
Great Sir Thanks
"and" is not a comparison operator that's why it didn't print true or false instead it printed the same number as written in print section
Thanku so much for providing such an awesome tutorial for free
thank you sir for teaching us.. 🙏🙏🙏
Please make a course on AI sir
import random
guesses = 8
g = 0
no = random.randint(0,10)
while True:
g_no = int(input('Guess the Number'))
guesses -= 1
g += 1
if guesses != 0:
if g_no > no:
print(f"No of Guesses Left = {guesses}
"
f"Guessed Number is Greater than the original number, Try Again!")
elif g_no < no:
print(f"No of Guesses Left = {guesses}
"
f"Guessed Number is Less than the original number, Try Again!")
elif g_no == no:
print(f'Congratulations!!! You have the right answer.'
f'You guessed it in {g} guesses.')
break
else:
print(f'Game Over! {guesses} guesses left')
break
9:22 bitwise operator
Herry bro ur great and thank you so much for your videos
Mazaa aa gayaa sirji🙏
sir never quit making python videos
Amazing video thank you Harry bro
Sir ji aap ki biography per ek video banaye
6:21
"i and 5"
expected by programmer: "print hoga true"
but reality "5"
Bhai observation level infinity!!
@@Raj-vz9ul hahaha thanks bro for noticing and appreciating my observation
@@metayoutubeacademy bhai pls explain why 5 gets printed?
Awesome harry bhai..👌🤪
its really helpful you are doing such a great work harry brother
#Hey Harry pls reply
# when I wrote print (5 is not 7) then it shows True but it also shows syntaxwarning: "is not" with a literal
Bro "is not" ki jagah "!=" type kro because python me not equal to ke liye "!=" Lete hain
( 5 is not 7)
Ye mere sath bhi problem hua😂😂😂
But I am solve this.
Sorry for bad english☹️☹️
Thank you
THANK YOU Sir
python sikhane ke liye
pahle mujhe kuchh nhi aata tha but jab se aapke videos dekh rha hu bahut kuchh sikh gaya hoo
than you very sir
Name:- Brahmdev mahto
class:- 9th
from:- Indore
Nice Video ❤
Thankyou sir
import random
maxn = 10
n = random.randint(1, maxn)
print('Welcome to guess the number game!')
print('Guess the number from 1 to %d' % maxn)
guess = None
while guess != n:
guess = int(input('Your try: '))
if guess > n:
print('Too high')
if guess < n:
print('Too low')
print('Congratulations, you won!')
I am not able to typecast input taken into string.
It shows this error( '>' not supported between instances of 'str' and 'int' )
Please help
#My name is Jaivick Joyce
print("Welcome to guessing game you have to guess a number and enter if your guess will be equal the number guessed by computer in 9 guess you will be the winner")
chance = 0
while True:
guess = int(input("Enter your guess"))
if guess>18:
print("Your guess is bigger")
chance = chance+1
print("you have left", 9-chance , "chance")
elif guess
Great Brother
a="thanks harry bhai"
print(a)
Sir apki sari program line ke pahle ek saath #. kaise lag jata h?
Please tell me which keywords you use
Ctrl + /
Free videos sikh rhe ho to bhai ke mehnat ko like bhi kiya kro....🙏
Boolean algebra kya hota hai or kaise karte hain, ek video banaiye na please