If Else & Elif Conditionals In Python | Python Tutorials For Absolute Beginners In Hindi #13

  Рет қаралды 687,234

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 5 100
@divyanshgupta3861
@divyanshgupta3861 4 жыл бұрын
print("zara umar btao apni") age=int(input()) if 18
@anmolprashar7737
@anmolprashar7737 4 жыл бұрын
😂😂😂😂🤪🤪😄
@kunjikatripathi6408
@kunjikatripathi6408 4 жыл бұрын
hahahahahahaha nice
@kislaykrishna8918
@kislaykrishna8918 4 жыл бұрын
😃😃
@anshusharma6369
@anshusharma6369 4 жыл бұрын
🤣🤣😂
@jatinsaini7773
@jatinsaini7773 4 жыл бұрын
Glt h bro. 7 se km ka age wala b.. 100 se less h .. to mtlb tb b.. statement "tum sb chla sktr ho" hi print hoga.. Lkin quiz k according hme age limit 7-100 rkhni h
@rahulshukla5033
@rahulshukla5033 5 жыл бұрын
age = int(input("Enter your age: ")) if age > 18 and age < 101: print("you can drive") elif age > 7 and age < 18: print("you can't drive") elif age == 18: print("come for physical test") else: print("not a valid age")
@kanadbaranbiswas3224
@kanadbaranbiswas3224 5 жыл бұрын
CORRECTION: you can not use "and" operator you should use "or" operator.
@hrushikeshkulkarni7353
@hrushikeshkulkarni7353 4 жыл бұрын
for "or": if age>18 or age
@jainilpatel8818
@jainilpatel8818 4 жыл бұрын
if someone's age is more then 60 so how can call him for physical test??
@yashik-xn6vm
@yashik-xn6vm 4 жыл бұрын
kanad biswas .....wrongly said ...and is correct not or
@MRSakil-zk2bm
@MRSakil-zk2bm 4 жыл бұрын
nice
@MystikPrae
@MystikPrae 2 жыл бұрын
print("What is your age") age = int(input()) if age100: print("Please enter your valid age") elif age18: print("You are eligible for driving license") elif age==18: print("You should visit our office for pysical test as you are exact 18") else: print("Please go to your home and just enganged in study") #code by Pratik Pokhrel Lots of love from Nepal harry and thank you so much.
@FORTUNATECOLLEGE
@FORTUNATECOLLEGE 2 жыл бұрын
not running bro
@vinayomkar9
@vinayomkar9 2 жыл бұрын
@@FORTUNATECOLLEGE a = 18 b = int(input("Enter your age :")) if 7>b or b>100: print('plzz check age ') elif b>a : print('u can drive ') elif b
@Top10PubgMobile
@Top10PubgMobile 2 жыл бұрын
check my code way better and easier print("Enter your age") var2= 18 var3= int(input()) if var3>var2: print ("You can drive") elif var3==var2: print("Come to us physically to decide wether you can drive or not") else: print("You can't drive")
@shashwatmidha4452
@shashwatmidha4452 Жыл бұрын
print("enter age") a = int(input()) if a100: print("enter valid age between 7 and 100") else: if a> 18: print("you can drive") elif a==18: print("you need to visit rto") else: print("you cannot drive")
@Rehan1278
@Rehan1278 Жыл бұрын
@@shashwatmidha4452 print ("welcome to python drivers") print("please type your age") var1 = 18 var2 = 99 var3 = int(input()) if var1
@gaurikajangid6169
@gaurikajangid6169 2 жыл бұрын
print('Enter your age ') age = int(input()) if age>18: print('You are eligible for the driving') elif age==18: print('you need to come and take a driving test') else: print('You are not eligible for driving') Thank you Harry bhaiya....this is the first time, aaj pahli baar bina kisi taakaa jhaaki ke apna khud se likh ke output la pyi...pahli baar error khud se sovle kari and successful bhi hui...💝💖💫
@milan87862
@milan87862 Жыл бұрын
print("Enter your age ") age=int(input()) if 18
@vinayomkar9
@vinayomkar9 2 жыл бұрын
a = 18 b = int(input("Enter your age :")) if 7>b or b>100: print('plzz check age ') elif b>a : print('u can drive ') elif b
@vijaykumar074
@vijaykumar074 4 жыл бұрын
print("aap gadi chala sakte ho ya nahi") print("apni age batao") age=int(input()) if age
@SurajSangule-h4b
@SurajSangule-h4b 10 ай бұрын
bro code in the elif age
@nj_149
@nj_149 9 ай бұрын
​@@SurajSangule-h4bend ka bracket gayab hai
@addictedcoderz6894
@addictedcoderz6894 3 жыл бұрын
age=int(input("Enter your age:",)) if age100: print("This is not a logical age") elif age
@M27GAMES27
@M27GAMES27 2 жыл бұрын
Your code is well optimised ...
@moeezkhan561
@moeezkhan561 2 жыл бұрын
Excellent
@itzzzyashu
@itzzzyashu 2 жыл бұрын
'or' statement isn't defined in this tutorial 😵
@soniyakanodia7316
@soniyakanodia7316 2 жыл бұрын
Heyy apka coda thoda sa galat hai
@awesomegameshub5738
@awesomegameshub5738 2 жыл бұрын
@@soniyakanodia7316 shi bola kahin kahin galti hai
@kashifjabbar1206
@kashifjabbar1206 2 жыл бұрын
Thank you so much for making these coding lectures a piece of cake! I've also added an exception in the program to deal with a situation when a user types a string. The code is as follows:- try: x = input("Please enter your age: ") age=int(x) except ValueError: print("Please enter a valid age i.e. 7, 18, 25 etc") try: if age>18: print("You are eligible to drive") elif age
@KoushikDas2005
@KoushikDas2005 2 жыл бұрын
I really can't understand why you people have used try and except and every other advanced stuff which he has not taught yet. Be a reasonable programmer. 🙏
@sidrubx073
@sidrubx073 9 ай бұрын
age = int(input()) if age>18: if age
@jayantabose8267
@jayantabose8267 2 жыл бұрын
Thank you sir for giving me the opportunity to Solve the Question. In spite of being a non-tech , it is a pleasure moment for me to write a code by myself. My answer--- print("Welcome To Driving School Online Portal") a = int(input("Enter Your Age: ")) if a>=7 and a 18: print("You Are Eligible to Drive") elif a==18: print("Can't be Decided. Please Come To The Office Physically") elif a
@asshivam8117
@asshivam8117 2 жыл бұрын
It's amazing!! Master Control Flow in Python in just 20 minutes!! Watch this video by Ninepointers for FREE!! kzbin.info/www/bejne/sICci2efo9J_sK8 :)😍
@Mnsaifalikhan
@Mnsaifalikhan 2 жыл бұрын
if a> 18: is Rong bro
@Mnsaifalikhan
@Mnsaifalikhan 2 жыл бұрын
Alll is right 👍
@mohindersutrave
@mohindersutrave 4 жыл бұрын
Thank you so much Harry: here is my try print("Enter an age between 7 and 100:") age = int(input()) if age in range(7,100): if age 18: print("Congracts! you can drive") elif age >100: print("Enter value of age between 7 and 100")
@mr.arindamkhan
@mr.arindamkhan 3 жыл бұрын
Bhi you have just a small Bug in your programe☺ Look i cleard the Bug--> print("Enter an age between 7 and 100:") age = int(input()) if age in range(7,100): if age 18: print("Congracts! you can drive") else: print("Enter value of age between 7 and 100")
@sanjayjituri5591
@sanjayjituri5591 4 жыл бұрын
Harry Bhai jaise ki aap ne kahata aap ka answer var1 = 19 var2 = 18 var3 = int(input("Tell your real age: ")) if var3>var2: print("You can drive with us") elif var3==var2: print("Your age is 18 we cannot deside") else: print("you cannot drive with us")
@MystikPrae
@MystikPrae 2 жыл бұрын
print("Please enter your age") age = int(input()) if age18: print("You are allowed to drive") elif age == 18: print("You are requested to meet up with us and we will decide") #code by Pratik Pokhrel.Lots of love from Nepal harry.
@cashubhammittal1609
@cashubhammittal1609 3 жыл бұрын
Print(" what is your age?") Age = int(input()) if 7
@yashveersingh2985
@yashveersingh2985 2 жыл бұрын
age= int(input("What is your age ")) if age in range(7,100): if age==18: print("We can't decide you have to be physically available to get a liscence") elif age>18: print("you are eligible for liscence") else: print("you are not eligible for liscence") else: print("not a valid age")
@VnM-vm3wm
@VnM-vm3wm 2 жыл бұрын
we could make it more efficient imo print("enter yo dumass age") age = int(input()) if ageage>7 : print("cant even use a computer while dead? lmaooo noob") else : print("damn bitch you hugee")
@yashveersingh2985
@yashveersingh2985 2 жыл бұрын
@io. Bhai range hai woh 7 sai 100
@yashveersingh2985
@yashveersingh2985 2 жыл бұрын
@io. Yeh bhai hai yrr😄
@RohitKumar-bf9sp
@RohitKumar-bf9sp Жыл бұрын
at line 2 it will be for i in range and write 101 instead of 100 as the loop terminates when the condition becomes true
@varunarya2126
@varunarya2126 3 жыл бұрын
I like one thing about Harry the most, when he says - "aur mai apni computer ki screen mein aa gya hun" He is literally in there . 😂😂
@thelostar
@thelostar 3 жыл бұрын
Plz Man Im Following This Tutorial Can U Explain Me Something?
@krishna290gamer2
@krishna290gamer2 2 жыл бұрын
@@thelostar YUP
@ni208
@ni208 2 жыл бұрын
print("enter your age to check your eleigibility for driving") bar1=18 bar2=int(input()) if bar2>bar1: print("you are eligible for driving") elif bar2==bar1: print("please visit RTO office to get varified") else: print("you are not eligible for driving") " Thank You Harry bhayya for all your efforts here"
@billu_saanda25
@billu_saanda25 2 жыл бұрын
print("What is your age") age=int(input()) if 18
@vinaypritwani
@vinaypritwani 2 жыл бұрын
thanks bro this solution was helpful
@billu_saanda25
@billu_saanda25 2 жыл бұрын
@@vinaypritwani Welcome bro
@abhaymandal2292
@abhaymandal2292 2 жыл бұрын
age= int(input("enter your age ")) if age>=18: print("u r adult") elif 16>=age=age=age
@debojyotirej9290
@debojyotirej9290 2 жыл бұрын
@@abhaymandal2292 check your 4th line
@abhaymandal2292
@abhaymandal2292 2 жыл бұрын
@@debojyotirej9290 My code is right bro
@binodtharu3518
@binodtharu3518 4 жыл бұрын
age=int(input("Enter your age: )) if(age>18 and age
@bhaveshsahu3849
@bhaveshsahu3849 4 жыл бұрын
your first line is wrong missing a quotation mark
@Waso369
@Waso369 4 жыл бұрын
No bro your answer is write
@bhaveshsahu3849
@bhaveshsahu3849 4 жыл бұрын
@@Waso369after see no quotation mark
@snehalparekh6772
@snehalparekh6772 4 жыл бұрын
as per requirement this program is wrong if age is 0 or 1 or -5
@shubham8618
@shubham8618 4 жыл бұрын
Hey BINOD.......!!slay point waala!!!!😀😀
@simplygamedeveloper7859
@simplygamedeveloper7859 2 жыл бұрын
Good video for basic exercises and quick recap. btw, here is my program try: age = int(input("Enter your age:")) if age100: print("Please enter a logical age which is b/w 7 and 100.") elif age > 18: print("You are eligible for driving licence.") elif age < 18: print("You are not eligible for driving licence") else: print("Since your age is exactly 18, we would have to take a offline test for your driving licence.")
@kallurugiresh8789
@kallurugiresh8789 2 жыл бұрын
The way you teach concept is awesome, Thank you harry bhai! Quiz ---------------------------- print("Welcome to my portal Hope you are all good!") print("what is your age ? ") age1 = 18 age2 = int(input()) if age2 > age1 : print("you can drive the vehicle!") elif age2 == age1: print("we can't decide about that! come to my office and we will check your driving skill!") else: print("you can't drive the vehicle!") print(" Thank you!")
@prajnaparamita3008
@prajnaparamita3008 4 жыл бұрын
"""Thank you so much Harry vai for your effort to teach us coding effectively and by seeing each video, I realize learning is indeed fun ! Here is my first attempt as a complete newbie,""" print("Enter your age") age=int(input()) if age>18: print("Yeah, you are qualified!!") elif age
@pinkigupta7057
@pinkigupta7057 2 жыл бұрын
kzbin.info/door/0IyUoPAzg8U79tqx1YRSEw
@kiranlondhe7163
@kiranlondhe7163 2 жыл бұрын
Tell me what if my age is 150 ? Can you solve this..?
@asshivam8117
@asshivam8117 2 жыл бұрын
It's amazing!! Master Control Flow in Python in just 20 minutes!! Watch this video by Ninepointers for FREE!! kzbin.info/www/bejne/sICci2efo9J_sK8 ☺
@som6553
@som6553 2 жыл бұрын
@@kiranlondhe7163 # PRogram to check if the person is eligible to drive or not print("Please enter your age!") age = int(input()) if(age100): print("invalid age") elif(age7): print("You are not eligble to drive") elif(age>18 and age
@itxanime8936
@itxanime8936 4 жыл бұрын
After 1 years😂😂i tried your couse thx harry sir print("enter your name plz ") input() print("nice name ") print("now enter your age plz") var1 = 18 var2 = int(input()) if var2>var1: print("yes you are a perfect driver") elif var2==var1: print("we cannot say that you have to.come for driving test") else: print("you have to wait for some years")
@shivamkumar-qo5pz
@shivamkumar-qo5pz 4 жыл бұрын
nice name😅😆
@dancelikeapro4148
@dancelikeapro4148 4 жыл бұрын
aur shubham kaisa hai re tu
@shrikrishnaumbare
@shrikrishnaumbare 3 жыл бұрын
You have to wait for some years ..i liked that concept even we can tell them how many years they have to wait by just subtrating there age from 18
@AkashSingh-yp7kl
@AkashSingh-yp7kl 3 жыл бұрын
maine bhi sae banaya
@rishabhverma5778
@rishabhverma5778 3 жыл бұрын
age =int(input("please fill up your age: \t")) if age>18: print("you are eligble") elif age==18: print("you have to come here") else: print("you are'nt eligble")
@surajbiswas4377
@surajbiswas4377 4 жыл бұрын
var1=int(input("Enter your age : ")) if var1150: print("Enter a valid number") elif var1>60: print("You are not eligible uncle") else: print("You can drive") BY THE WAY I AM A 12 TH STANDARD STUDENT AND LEARNING PYTHON FROM YOUR COURSE . THANKS A LOT🥰🥰
@nandinigupta1913
@nandinigupta1913 2 жыл бұрын
I think aap apne school mai teachers ki bhi chaata karte the
@sonu-qx8cf
@sonu-qx8cf 2 жыл бұрын
@@nandinigupta1913 kya socha h yrr tune 😂😂😂 mauj krdi 🤣🤣
@anjalitaliyan7594
@anjalitaliyan7594 4 жыл бұрын
Hurray......fell in love with python 😊😊....harry is so wonderful
@amitmishra02411
@amitmishra02411 3 жыл бұрын
Yeah 😁
@RahulGupta-po1gc
@RahulGupta-po1gc 3 жыл бұрын
Ohhh good 😅
@ankushwalia9630
@ankushwalia9630 2 жыл бұрын
Mee too
@commonman5767
@commonman5767 2 жыл бұрын
😂
@daksh2395
@daksh2395 2 жыл бұрын
But I fell in love with you after see your beautiful and attractive face and wonderful eyes like gems 💎 Thanks to god to do extra efforts in your face
@theunknownone6833
@theunknownone6833 4 жыл бұрын
a=int(input("enter your age")) if a>18 and a
@krrishsingh3293
@krrishsingh3293 4 жыл бұрын
Bro, its wrong. he said to set the limit of 101(^^)
@uiui995
@uiui995 3 жыл бұрын
glt h bhai
@faheemsification
@faheemsification 3 жыл бұрын
@@krrishsingh3293 so what is solution plz
@krrishsingh3293
@krrishsingh3293 3 жыл бұрын
@@faheemsification nthg just add another else statement n modify the previous one
@omprakashmandal781
@omprakashmandal781 3 жыл бұрын
Uid bhej apna tu
@KoushikDas2005
@KoushikDas2005 2 жыл бұрын
22 December 2022 10:12 n=int(input ("Enter your age :(only integer input allowed)")) if n>18: print("yes ,you are eligible to drive") elif n==18: print("come for a physical test as we can't say about your driving skills") else: print("no,you are not eligible to drive")
@valmikwagh5862
@valmikwagh5862 3 жыл бұрын
Python supports the usual logical conditions from mathematics: Equals: a == b Not Equals: a != b Less than: a < b Less than or equal to: a b Greater than or equal to: a >= b
@futureiitian7077
@futureiitian7077 2 жыл бұрын
I'm not so good at writing programmes but yea learning and so far python is going great 🙂😌
@akashbiswas5617
@akashbiswas5617 2 жыл бұрын
Thanks bro for this 🤗
@Jashanvlogssssmr.
@Jashanvlogssssmr. 4 жыл бұрын
Best channel i found for my programming in python....
@ayeshakhalid5708
@ayeshakhalid5708 2 жыл бұрын
Thank you so much sir God bless you😍
@tobesesrious6730
@tobesesrious6730 Жыл бұрын
# # harry's exercise for age limit checking # while True: # age = int(input('Enter you age in numbers: ')) # if age > 100: # print("You should not drive!") # elif age >= 18: # print("You are eligible for driving.") # elif age < 18: # print("You are not eligible for driving.") # else: # print("Something went wrong! Please try again.") ## You are too good bro you helped a lot!
@saieditx1
@saieditx1 4 жыл бұрын
Age = int(input("enter your age")) If age > 18 and age
@DevenderKumar-sh2dc
@DevenderKumar-sh2dc 3 жыл бұрын
This is littel bit funny
@bhaveshwagh2741
@bhaveshwagh2741 6 жыл бұрын
Super video sir... Thank you... No improvement needed🤗
@sussss4332
@sussss4332 3 жыл бұрын
print("Type your age for driving") var1 = 18 var2 = 7 var3 = 90 age = int(input()) if var1var3: print(" You can drive") elif age
@bhaveshwagh2741
@bhaveshwagh2741 3 жыл бұрын
@@sussss4332 you have not used this conditions properly . Please correct those.
@SandeepSharma-lm1ye
@SandeepSharma-lm1ye 3 жыл бұрын
@@sussss4332 check your first if "age>var3"
@muhammadfarhan2493
@muhammadfarhan2493 3 жыл бұрын
MASH'ALLAH Harry Bhaii....boht kamaal ka kaam kr rhy hain....Allah Aap ko Hamesha Khush rkhy r is Ka ajar dy aap ko....love uh
@ramtripathi1621
@ramtripathi1621 Жыл бұрын
age= int(input("enter your age")) if age100 print(" You are either a toddler or someone about to die please don't drive") elif age>18: print("Yes you can drive") elif age==18: print("Let's check if you can drive once you visit us.") else: print("Nope you can't drive.") #Thanks Harry bro
@mudassirraza4066
@mudassirraza4066 6 жыл бұрын
MashAllah Harry bhai awesome bht allaw isi trah quiz or small projects daity rehna... Thank you so much ...Allah bless you brother
@bilkiskhan1709
@bilkiskhan1709 2 жыл бұрын
Sahi ha bhi
@Mayank-Pawar
@Mayank-Pawar 2 жыл бұрын
var1 = 18 var3 = int(input()) if var3 > var1: print("You can Drive") elif var3==var1: print("Cannot Decide, Come at the place so that we can decide") else: print("You cannot Drive")
@assiiaan
@assiiaan Жыл бұрын
Hey can you tell me if we put condition in else or not
@SukhwinderKaur-mo9vi
@SukhwinderKaur-mo9vi 3 жыл бұрын
a = int(input("enter your age ")) if a > 18 : print ("greater") elif a == 18: print ("equal") else: print ("lesser") Elif lagana toh kush zyada he zaruri hai
@rajneeshgupta330
@rajneeshgupta330 2 жыл бұрын
inp = str(input('your age ')) list = 18 if int(inp) > list: print("you are eligible for driving") elif int(inp)==list: print('you are eligible for driving but you have to give test') elif int(inp) < list: print('you are not eligible for driving') FIRST PROGRAM EVER
@amoghparab1689
@amoghparab1689 2 жыл бұрын
print("What is your age?") a=int(input()) b=18 c=100 if ac: print("Enter logical age") elif a==b: print("We cannot decide if you are eligible for driving license") else : print("You are eligible for driving license")
@utkarshbisht7273
@utkarshbisht7273 4 жыл бұрын
print("ENTER YOUR AGE:") age= int(input()) if (7
@akashkb6905
@akashkb6905 4 жыл бұрын
In this second if also run when you enter age above 18
@theyoungsters3511
@theyoungsters3511 2 жыл бұрын
good work friend . Thanks alot for making these coding lectures a piece of cake! I've also added an exception in the program to deal with a situation when a user types a string
@cuteanimals270
@cuteanimals270 Жыл бұрын
Here is my try:- print("Please enter your valid age") age = int (input ()) if 7>age or 45
@Rahulsingh-lm1ho
@Rahulsingh-lm1ho 4 жыл бұрын
Age = int(input("enter your age")) If age>18: Print("you can drive sir") Elif age==18: Print("come for trail") Else: Print ("u can not")
@umairabdullah9041
@umairabdullah9041 2 жыл бұрын
print('Enter your age:') age = int(input()) if 18 < age < 100: print('You are eligible to drive.') elif 7 < age < 18: print('You are not eligible to drive.') elif age == 18: print('You have to visit the RTO office for physical confirmation.') else: print('Age is not valid')
@intelgaleedits1254
@intelgaleedits1254 2 жыл бұрын
Wow
@ctrlaltcodeshots
@ctrlaltcodeshots 5 жыл бұрын
#simple_method Print("what is your age") age = int(input() ) If age >=100: Print("invalid age") elif age
@Internetlife007
@Internetlife007 5 жыл бұрын
Thanks buddy it really help me
@vaibhavtapdiya7077
@vaibhavtapdiya7077 5 жыл бұрын
@Creator AnoNymous no it's correct....... I am not getting any type of error msg
@harrycreations6825
@harrycreations6825 5 жыл бұрын
Its correct but what if age is equal to 18
@akshitmarwaha6857
@akshitmarwaha6857 4 жыл бұрын
print("what is your age") age = int(input() ) if age >100: print("invalid age") elif age
@snivin5618
@snivin5618 2 жыл бұрын
age = int(input("Enter your age: ")) if age
@mrinalkumar1077
@mrinalkumar1077 2 жыл бұрын
arhar ki daal na mile toh bhindi ki sabji lete aana ....hhahahah...
@shaikzubair5926
@shaikzubair5926 3 жыл бұрын
Im watching these series in 2021 and I'm in b tech final yr!! thanks man
@nuclergaming9969
@nuclergaming9969 3 жыл бұрын
Bro me bhi hu tere sath😉
@zainbaloch4850
@zainbaloch4850 3 жыл бұрын
Me too
@gouravsingh235
@gouravsingh235 3 жыл бұрын
me bhi
@kiankumar5529
@kiankumar5529 3 жыл бұрын
bhai BTech mein kya padaya please batao mein 12th me hu BTECH lene ka soch raha hu
@anmolguleri2148
@anmolguleri2148 3 жыл бұрын
@@kiankumar5529 mt leta bahi bhool kr mt bhi zindgi bhr ryoyega
@Amaterasu_Itachi
@Amaterasu_Itachi 3 жыл бұрын
print("Enter your age") Age=int(input()) if Age>200: print("Invalid age") elif Age18: print("You can drive a car") elif Age==18: print("You should have physicaly appear here then we will decide you can drive or not") else: print("You cannot drive a car")
@k4kashan121
@k4kashan121 2 жыл бұрын
Are bro you did a good job
@kshitijsaigal9529
@kshitijsaigal9529 2 жыл бұрын
Good yrr
@YogeshKumar-zj4tz
@YogeshKumar-zj4tz 2 жыл бұрын
Bhai isme to you can drive hi arha hai abhi bhi aisa kyu 200 se zada mai
@Amaterasu_Itachi
@Amaterasu_Itachi 2 жыл бұрын
@@YogeshKumar-zj4tz 18 se kam age input kro
@YogeshKumar-zj4tz
@YogeshKumar-zj4tz 2 жыл бұрын
Phr to shi arha hai ans bhai jab yh agr zada vali condition niche likh raha hu elif mai to glt ho raha hai
@rajangulati1793
@rajangulati1793 Жыл бұрын
#RTO selection system a=int(input("enter your age:")) if a>18: print("you can drive and you can able to apply driving licence !") elif a==18: print("you can visit RTO physically we can check physically ! ") else: if a
@jardanpratapsingh5229
@jardanpratapsingh5229 2 жыл бұрын
Jardan code: print("Hey user, Are you eligible for Driving? ", end="Check it out. ") Input = int(input("Enter your age: ")) Criteria = 4 Criteria_2 = 100 if Input > Criteria_2: print("Please enter valid age.") if Input
@meetmodi9437
@meetmodi9437 4 жыл бұрын
req = 18 print("give ur age to check") age = int(input()) if age>7 and age req: print("u are eligable to get lisence ") elif (age == req): print("u can apply to get lisence after a meeting") else: print("get out boi!") else: print("good bye u cant apply")
@gamingnon-stop8167
@gamingnon-stop8167 3 жыл бұрын
Challenge accepted ^-^ print("What is your age ?") age_1 = int(input()) if age_1 < 18 < 100: print("You cannot drive..") elif age_1 == 18: print("we will think about it") elif age_1 > 100: print("Hoo....you are a ghost, RUN") else: print("You can drive")
@aryanphatarpekar685
@aryanphatarpekar685 3 жыл бұрын
😂 Run...Thun na na na na na
@aryanphatarpekar236
@aryanphatarpekar236 3 жыл бұрын
😂😂😂😂well done bro
@yatinphatarpekar7195
@yatinphatarpekar7195 3 жыл бұрын
😂😂😂
@oatmeal.5908
@oatmeal.5908 3 жыл бұрын
Very well done 😂
@oatmeal.5908
@oatmeal.5908 3 жыл бұрын
Btw nice code
@aniketsangle15
@aniketsangle15 Жыл бұрын
age=int(input("What is your age? ")) if 18
@manthanjagtap6736
@manthanjagtap6736 2 жыл бұрын
#Challenge_Accepted print("Enter your age:") age = int(input()) if age100: print("Not a logical age") elif age>18: print("You can drive") elif age==18: print("Your age is 18, we can't decide, you have to come here physically then we'll see") else: print("You can't drive") print("Thank You")
@som6553
@som6553 2 жыл бұрын
# PRogram to check if the person is eligible to drive or not print("Please enter your age!") age = int(input()) if(age100): print("invalid age") elif(age7): print("You are not eligble to drive") elif(age>18 and age
@shivaverma1535
@shivaverma1535 2 жыл бұрын
9:28 Quiz answer cwh="Harry is amazing" #CWH May 2022, Python tutorials, vid:13, timelapse: 9:52 import time print("Hello user, this is Singh's Driving Club AI") username= input("What's your name? ") age=int(input("what's your age? ")) if age>18 and age
@sheetaldwivedi6690
@sheetaldwivedi6690 2 жыл бұрын
print("Hi there kindly enter to check whethever you are eligible for driving or not.... ") age = int(input("Enter your age.....")) if age7 and age100: print("We will think about it. kindly leave your mail Id ") Email = input("Enter your Gmail ID Here..........") print(Email ,"Confirmed this is your Gmail ID....Have a nice day:)") #Thanks Harry sir for being our python teacher
@muzmmilpathan7781
@muzmmilpathan7781 6 жыл бұрын
age=int(input ("Enter your age:")) if age>=7 and age=16 or age
@pushpeshpandeytechnical
@pushpeshpandeytechnical 5 жыл бұрын
wrong
@vijaybadgujar151
@vijaybadgujar151 5 жыл бұрын
Bhai tere code ko run kar bata error generate ho rahi he ya nahi
@jainikshah1899
@jainikshah1899 Жыл бұрын
print("What is your age") age = int(input()) if 7
@yasaeshaikh8894
@yasaeshaikh8894 4 жыл бұрын
print("Enter Your age") age = int(input("What is Your age ? ")) if age60: print ("Don't think about it Uncle") else: print ("Lets go")
@adityaverma8209
@adityaverma8209 4 жыл бұрын
age = int(input("enter your age")) if age>18: print("selected") if age==18: print("selected") else: print("not selected")
@kanadjadhav9514
@kanadjadhav9514 4 жыл бұрын
I started learning now😭 print("your age") age=int(input()) if age >1 and age
@Abhishek-yk7ui
@Abhishek-yk7ui 4 жыл бұрын
Bro I have also started a few days ago.... check mine... """ Take Users age as an input and tell him he can drive a car or not... """ print("Whats your age?") age1 = int(input()) if age11: print("Go to kinder gardens and drive a toy car...") if age16: print("You are just a teenager,") print("You can't drive a car...") """ If your age is between 7 and 17 it will say you are a teenager and you cannot drive a car... """ if age1>17 and age171 and age1122: print("It seems like you are the OLDEST PERSON of Earth...") print("Sorry, Invalid age...") """ if your age is over 122years, it will say that you are the oldest person in the earth... that means invalid age ... """ exit()
@itsTyrantt
@itsTyrantt Жыл бұрын
Thank You So Much Harry Sir Apse seekh kr mene age wala code bhi bnaya and khud se ek or bhi bnaya jo apne upr numbers ki list bnao thi apne to bas single dali thi na mene age wale program ki tara bnaya mere numbers hn 1 2 3 4 5 6 agr koi banda dale ga 1 - 6 mn se koi number to usse ayega Yes It Is or agr woh 6 se upr dale ga to ayega No its Not i know ye itni bari cheez nhi h but mene khud bnaya to socha aapke btao Age Program Code:- print("What is Your Age?") var1 = int(input()) # if var1>50: print("Age Limit"), if var1>18: print("Can Drive") elif var1==18: print("We'll Think") else: print("Can't Drive") Number List Program (Mine):- l1 = [1, 2, 3, 4, 5, 6] l2 = l1 print("Enter The Number You Want To Check") l2 = int(input()) if l2 in l1: print("Yes It Is") else: print("No Its Not")
@dhruvdosi1589
@dhruvdosi1589 3 жыл бұрын
print('enter your age') age = float(input()) if 7
@shubham_wankhede2570
@shubham_wankhede2570 3 жыл бұрын
Why you take float bro
@seemapal1249
@seemapal1249 5 жыл бұрын
Print("what is ur age") age = int(input()) If age18 and age
@mohansharma5150
@mohansharma5150 4 жыл бұрын
If age is 2 then according to your program it will write u cannot drive It will not write that don't apply for driving
@asadurrehman3591
@asadurrehman3591 2 жыл бұрын
thankyou sir. i am also watching 100 days of coding along with this
@KoushikDas2005
@KoushikDas2005 2 жыл бұрын
Same here.
@atharvakinhikar1742
@atharvakinhikar1742 2 жыл бұрын
age =int(input()) num=18 if age>num: print("youn can drive") elif age==num: print("we can't decide ") else: print("you are not in age grp")
@dishakariya8307
@dishakariya8307 3 жыл бұрын
age=int(input("Enter the age between 7 to 100")) if(age>7 and age
@captainprice9304
@captainprice9304 3 жыл бұрын
Kya aap int input wala sceane samjha sakte ho
@tanmaydeshpande3004
@tanmaydeshpande3004 Жыл бұрын
Hey @CodeWithHarry , thanks for your wonderful lectures, I found your channel today itself and those are really easy to understand. Actually I was doing some experiments with the condition but it did not work, could you please help me with the solution for the program below ? Purpose- I want the system to give the input box for "spouse name" if the user's marrital status is married and I tried this program but got an error. print ("Marrital status") MS = input() if MS == Married: print ("Name of your spouse")
@Rahulkatera
@Rahulkatera 10 ай бұрын
print ("enter your age") var=int(input()) var1=18 if (var99): print ("chick your age") elif (varvar1): print ("you can drive") else: print ("come for physical test")
@abhisheksekhri4511
@abhisheksekhri4511 5 жыл бұрын
var1=18 print("what is your age") var3= int(input()) if var3>100: print("Invalid Age") elif var3>=var1: print("you are Eligible") else: print("You are not eligible")
@spy1545
@spy1545 5 жыл бұрын
You got me correct! Thanks!
@Crazysam1902
@Crazysam1902 5 жыл бұрын
U got me ryt...thankeww😊
@suraj8285
@suraj8285 2 жыл бұрын
age = int(input("Enter your age = ")) if (90 > age >= 18): print("you can Drive.") elif(age >= 90): print("Visit RTO for Medical Verification.") else: print("According to our current rules You are not eligible to Drive.")
@himanshusharma-eu8lj
@himanshusharma-eu8lj 3 жыл бұрын
Age = int(input("enter the age:")) If age>18: Print("you can drive") Elif age
@siddheshsorap461
@siddheshsorap461 4 жыл бұрын
print("Enter you age") age=int(input()) if age>18: print("You can get a license") elif age==18: print("You may or may not get a license") else: print("You cannot get a license") edit: damnn harry's and my code is somewhat same..i didnt even knew that he's gonna give the answer in this video itself
@xmasiddiqui
@xmasiddiqui 5 жыл бұрын
""" exercise : take an age from user, if age is less than 18, user is not eligible to apply for driving license if age is more than 18, user is eligible to apply for driving license if age is equal to 18, RTO will think about his eligibility """ age = int(input("Enter your age to check your driving license eligibility : ")) if age < 18: print("Not Eligible") elif age == 18: print("RTO will think about your eligibility because you are just 18 now") else: print("Eligible")
@Amritamiya_Indiawala
@Amritamiya_Indiawala 5 жыл бұрын
age=int(input("Enter your age:")) if age >18: print("User is eligible to apply for driving license") elif age
@shailendrachandrajaiswal6440
@shailendrachandrajaiswal6440 3 жыл бұрын
print('Is your age between 7 to 100') var1=7 var2=100 var3=int(input()) if var3
@shailendrachandrajaiswal6440
@shailendrachandrajaiswal6440 3 жыл бұрын
Is it okay sir?
@420sakura1
@420sakura1 2 жыл бұрын
You are doing Gods work for students too poor to take courses. I am learing more more from this than any courses i went to.
@parthdesai7074
@parthdesai7074 2 жыл бұрын
a=int(input("enter you age:")) age = 18 if age>a: print("you are not drive") elif age==a: print("you are not drive") else: print("you are drive")
@rknanda264
@rknanda264 5 жыл бұрын
print("Enter Your Age in Year") age=int(input()) if age>18 and age
@witty_soul
@witty_soul 5 жыл бұрын
what if someone enters age above 101?
@rknanda264
@rknanda264 5 жыл бұрын
@@witty_soul bhai to else ki condition m jaye ga
@immortal348
@immortal348 5 жыл бұрын
perfect
@devmonish
@devmonish 3 жыл бұрын
UPDATE: print(" ENTER YOUR AGE TO CHECK YOUR ELIGIBILITY To DRIVE") age=int(input()) if 18=5: print(" chalana to sikh lo pahale") else: print("bHAGO BSDK,TUMASE NA HO PAYEGA")
@sumitExplains
@sumitExplains 2 жыл бұрын
ooo bhai i resonate with you
@RahulSingh-zr8rj
@RahulSingh-zr8rj 2 жыл бұрын
O Bhai Maro mujhe Maro 😂😂
@mr-noob-gang
@mr-noob-gang 2 жыл бұрын
print("writ your age") var1 = 18 var2 = int(input()) if var1>var2: print("not eligible for driving") elif var1==var2: print("not decided.It will only decided when physically tested(driving)") else: print("you are eligible for driving")
@m.kamran187
@m.kamran187 3 жыл бұрын
9:55 Quiz answer var1 = int(input("Enter your age: ")) if var180: print("Nikal Bhudde") elif var1>18: print("You should drive") elif var1
@adityasinghpayaal3062
@adityasinghpayaal3062 3 жыл бұрын
bro its wrong because if you type 101 or 19 the output will be same. plz check thx me later
@rajk9034
@rajk9034 4 жыл бұрын
var1 is angry with your code specially with statements and conditions. 🤣😂😂
@neenadnimje
@neenadnimje 4 жыл бұрын
age = int(input("What is your age?")) required_age = 18 if age7: if age>required_age: print("You can drive.") elif age==required_age: print("We have to think over it.") else: print("You are too early to drive.") else: print("You are entering an undesirable age numerical.") else: print("You are entering an undesirable age numerical.")
@ritukalra9631
@ritukalra9631 2 жыл бұрын
Very helpfull sir here's my code print("Welcome to our page, to know if you can drive please input your age") print("What is your age") age = int(input()) if age > 18: print("You are eligible to drive") elif age == 18: print("You are eligible to drive") else: print("Sorry you are not eligible to drive") print("Thank you for choosing our page, Have a good day ahead")
@lifehustlers164
@lifehustlers164 3 жыл бұрын
This guy is excessively obsessed with "bhindi" 😂😂😂😂😂😂😂😂😂
@pinkigupta7057
@pinkigupta7057 2 жыл бұрын
kzbin.info/door/0IyUoPAzg8U79tqx1YRSEw
@hsaaseries5976
@hsaaseries5976 2 жыл бұрын
Var1=18 Var2=("Tell me your age") Print (var2) Var3=int(input()) If var3< 7 or var3 >100 : Print("illogical age") Elif var1 var3: Print("you cannot drive") Elif var1 var3: Print("we can't decide,instead of checking physically") Else: Print("you can drive")
@Kirtansadhwani
@Kirtansadhwani 2 жыл бұрын
# Task print("what is your age") age = int(input()) if age
@bharamandevta9847
@bharamandevta9847 Жыл бұрын
a=int(input("what is your age?:")) if a>18: print("you can drive") elif a
@27-dcstjoshimsk34
@27-dcstjoshimsk34 2 жыл бұрын
age=int(input("enter your age in between 5-100 :")) if age100: print("please enter a valid age :") elif age
@Rajan_Jha-z7m
@Rajan_Jha-z7m 2 жыл бұрын
age = int(input('enter the age:')) if (4 < age < 101): if age > 18: print('you can drive') elif age < 18: print('you cannot drive') else: print('come here for physical test') else: print('you are not eligible to drive the car')
@thaheer__2050
@thaheer__2050 2 жыл бұрын
a =int(input("Enter your age :")) if a18 : print("yes you can drive if you're having license") else: print("please Enter your age")
@DriftGang1969
@DriftGang1969 2 жыл бұрын
My first code :)} task := 11:30 #Age protocols about Computor use print("what is your age?") age = int(input()) if age 5 and age < 100: print("you can use computor") elif age > 100: print("you are over age for this") else: print("unvalid number")
@chandansarkar4681
@chandansarkar4681 2 жыл бұрын
var1=18 print("Enter your age ") var2=int(input()) if var2>var1: print("you are eligible to drive") elif var2==var1: print("you are not eligible give test") else: print("you are not eligible") this is mine first code all by my self i am so happy you can also try just copy and past
@zeeskhan5661
@zeeskhan5661 2 жыл бұрын
9:54: age = int(input("Enter your age please: ")) if age < 6 or age > 90: print("This is not a logical age") elif age > 18: print("You can drive!") elif age == 18: print("We can't decide it, we will think about it later...") else: print("You can't drive!")
@sohammaster4633
@sohammaster4633 Жыл бұрын
a = 18 b = int(input()) if ab : print(" you cannot drive") elif a==b : print(" need to for check") elif b< 7: print(" your are not valide") elif b> 100: print("you age is too high")
@techsigmarobots
@techsigmarobots 2 жыл бұрын
while True: age=int(input("Please enter your age :")) if age18: print("Your age is more 18. So you can drive now") else: print("We can not decied it. Need to test physically")
@KishlayRajSanu
@KishlayRajSanu 2 жыл бұрын
10:20 n = int(input("Enter your age : ")) if n > 18 : print("You can drive") elif n == 18: print("Come physically") else: print("You are not eligible for drivng")
@pickX539
@pickX539 2 жыл бұрын
age = int(input("Enter your age :")) if age>18: print("yes you can drive the car ") elif age == 18: print("yes u can") else: print("you can't drive the car")
@manumittal3000
@manumittal3000 2 жыл бұрын
Age= int(input()) if Age < 7 or Age > 100: print("Mention logical age") elif Age > 18: print("Drive") elif Age
@nikitaprasad1639
@nikitaprasad1639 2 жыл бұрын
print("Enter your age :") Age= int(input()) if Age < 7 or Age > 100: print("Mention logical age") elif Age > 18: print("Drive") elif Age < 18: print("Can't Drive") else: print("Visit physically for test as you are 18") your code is totally correct just the first line is missing in it so i added that line :^)
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
If & If Else Conditional Statements in Python | Python Tutorials for Beginners#lec24
18:41
Control Flow in Python - If Elif Else Statements
16:08
Programming with Mosh
Рет қаралды 310 М.
The if-elif-else Statement in Python
12:45
Neso Academy
Рет қаралды 41 М.
Почта - Уральские Пельмени | ЭКСКЛЮЗИВ
9:03
Уральские Пельмени
Рет қаралды 110 М.