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

Поделиться
HTML-код
  • Опубликовано: 20 авг 2024

Комментарии • 5 тыс.

  • @MystikPrae
    @MystikPrae Год назад +35

    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 Год назад

      not running bro

    • @vinayomkar9
      @vinayomkar9 Год назад +3

      @@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

    • @lightlessplays1062
      @lightlessplays1062 Год назад +1

      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

  • @divyanshgupta3861
    @divyanshgupta3861 4 года назад +662

    print("zara umar btao apni")
    age=int(input())
    if 18

    • @anmolprashar7737
      @anmolprashar7737 3 года назад +8

      😂😂😂😂🤪🤪😄

    • @kunjikatripathi6408
      @kunjikatripathi6408 3 года назад +7

      hahahahahahaha nice

    • @kislaykrishna8918
      @kislaykrishna8918 3 года назад +4

      😃😃

    • @anshusharma6369
      @anshusharma6369 3 года назад +3

      🤣🤣😂

    • @jatinsaini7773
      @jatinsaini7773 3 года назад +18

      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

  • @kashifjabbar1206
    @kashifjabbar1206 2 года назад +25

    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 Год назад +11

      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. 🙏

  • @milan87862
    @milan87862 11 месяцев назад +3

    print("Enter your age ")
    age=int(input())
    if 18

  • @gaurikajangid6169
    @gaurikajangid6169 2 года назад +5

    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...💝💖💫

  • @rjdynasty9613
    @rjdynasty9613 2 года назад +74

    age = int(input('Enter your age :'))
    if 18

    • @nitd27
      @nitd27 Год назад +5

      age = int(input('Enter your age :'))
      if 18

    • @Saur-g9r
      @Saur-g9r Год назад

      @@nitd27 I think it is not totally correct

    • @Saur-g9r
      @Saur-g9r Год назад

      @@nitd27 elif(age>100 or age100,age

    • @king_9981
      @king_9981 Год назад

      @@Saur-g9r exactly ur right

    • @king_9981
      @king_9981 Год назад

      @@Saur-g9r also we can add here as
      elif(age>100 and age

  • @vinayomkar9
    @vinayomkar9 Год назад +6

    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

  • @rajneeshgupta330
    @rajneeshgupta330 Год назад +1

    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

  • @rahulshukla5033
    @rahulshukla5033 5 лет назад +425

    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 4 года назад +39

      CORRECTION: you can not use "and" operator you should use "or" operator.

    • @hrushikeshkulkarni7353
      @hrushikeshkulkarni7353 4 года назад +26

      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 года назад +2

      kanad biswas .....wrongly said ...and is correct not or

    • @MRSakil-zk2bm
      @MRSakil-zk2bm 4 года назад

      nice

  • @cashubhammittal1609
    @cashubhammittal1609 3 года назад +14

    Print(" what is your age?")
    Age = int(input())
    if 7

  • @sidrubx073
    @sidrubx073 5 месяцев назад

    age = int(input())
    if age>18:
    if age

  • @TanaySinghai369
    @TanaySinghai369 Год назад +2

    user_age=int(input("Enter Your Age:"))
    if 7

  • @mysteriousworld304
    @mysteriousworld304 2 года назад +91

    print("chal aayu bataa")
    age=int(input())
    if 18

    • @mriduljindal9852
      @mriduljindal9852 2 года назад +1

      mast

    • @vdas1335
      @vdas1335 2 года назад +1

      🤣🤣

    • @amankeshri76
      @amankeshri76 2 года назад +3

      Bhajan kirtan sirf bhude nhi krte!!
      Yongster v krte hai pr tum bacho se ham ummid v kya kr skte hai 😬

    • @mysteriousworld304
      @mysteriousworld304 2 года назад +10

      @@amankeshri76 abey ja na ❤️day kaam karna apna...comment ko sarcasm ki tarah le mand buddhi balak

    • @b2kloverb2klover53
      @b2kloverb2klover53 2 года назад

      😂🤣😂🤣😂🤣 MAI BHI YAHI SAB SOCH RHA THA

  • @addictedcoderz6894
    @addictedcoderz6894 2 года назад +197

    age=int(input("Enter your age:",))
    if age100:
    print("This is not a logical age")
    elif age

    • @M27GAMES27
      @M27GAMES27 2 года назад +9

      Your code is well optimised ...

    • @moeezkhan561
      @moeezkhan561 2 года назад +4

      Excellent

    • @itzzzyashu
      @itzzzyashu 2 года назад +14

      'or' statement isn't defined in this tutorial 😵

    • @soniyakanodia7316
      @soniyakanodia7316 2 года назад +8

      Heyy apka coda thoda sa galat hai

    • @awesomegameshub5738
      @awesomegameshub5738 2 года назад +3

      @@soniyakanodia7316 shi bola kahin kahin galti hai

  • @billu_saanda25
    @billu_saanda25 Год назад +41

    print("What is your age")
    age=int(input())
    if 18

    • @vinaypritwani
      @vinaypritwani Год назад +2

      thanks bro this solution was helpful

    • @billu_saanda25
      @billu_saanda25 Год назад +1

      @@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 Год назад

      @@abhaymandal2292 check your 4th line

    • @abhaymandal2292
      @abhaymandal2292 Год назад +1

      @@debojyotirej9290
      My code is right bro

  • @kallurugiresh8789
    @kallurugiresh8789 Год назад

    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!")

  • @sanjayjituri5591
    @sanjayjituri5591 4 года назад +6

    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")

  • @vijaykumar074
    @vijaykumar074 3 года назад +8

    print("aap gadi chala sakte ho ya nahi")
    print("apni age batao")
    age=int(input())
    if age

    • @user-jp3dp9gf9m
      @user-jp3dp9gf9m 6 месяцев назад +1

      bro code in the elif age

    • @Naman_JEE25
      @Naman_JEE25 5 месяцев назад

      ​@@user-jp3dp9gf9mend ka bracket gayab hai

  • @Rahulkatera
    @Rahulkatera 6 месяцев назад +1

    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")

  • @MystikPrae
    @MystikPrae Год назад +1

    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.

  • @mohindersutrave
    @mohindersutrave 3 года назад +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 2 года назад

      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")

  • @jayantabose8267
    @jayantabose8267 2 года назад +6

    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!!
      ruclips.net/video/zO9Z4inmLzM/видео.html
      :)😍

    • @Mnsaifalikhan
      @Mnsaifalikhan Год назад

      if a> 18: is Rong bro

    • @Mnsaifalikhan
      @Mnsaifalikhan Год назад +1

      Alll is right 👍

  • @KoushikDas2005
    @KoushikDas2005 Год назад +1

    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")

  • @varunarya2126
    @varunarya2126 3 года назад +73

    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 года назад +3

      Plz Man Im Following This Tutorial Can U Explain Me Something?

    • @krishna290gamer2
      @krishna290gamer2 2 года назад

      @@thelostar YUP

  • @jardanpratapsingh5229
    @jardanpratapsingh5229 Год назад +3

    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

  • @cuteanimals270
    @cuteanimals270 Год назад +1

    Here is my try:-
    print("Please enter your valid age")
    age = int (input ())
    if 7>age or 45

  • @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!

  • @itxanime8936
    @itxanime8936 3 года назад +49

    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 3 года назад +2

      nice name😅😆

    • @dancelikeapro4148
      @dancelikeapro4148 3 года назад

      aur shubham kaisa hai re tu

    • @shrikrishnaumbare
      @shrikrishnaumbare 3 года назад +1

      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")

  • @theunknownone6833
    @theunknownone6833 4 года назад +70

    a=int(input("enter your age"))
    if a>18 and a

    • @krrishsingh3293
      @krrishsingh3293 3 года назад +2

      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

  • @sohammaster4633
    @sohammaster4633 Год назад +1

    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")

  • @phy2503
    @phy2503 Год назад +1

    age=int(input("What is your age?:"))
    if (age7):
    print("You cannot drive")
    elif (age==18):
    print("We will think about it")
    elif (age>18) and (age

  • @yashveersingh2985
    @yashveersingh2985 2 года назад +18

    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 Год назад

      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 Год назад

      @io. Bhai range hai woh 7 sai 100

    • @yashveersingh2985
      @yashveersingh2985 Год назад

      @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

  • @anjalitaliyan7594
    @anjalitaliyan7594 4 года назад +40

    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 года назад +1

      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

  • @rajangulati1793
    @rajangulati1793 8 месяцев назад

    #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

  • @thaheer__2050
    @thaheer__2050 2 года назад +1

    a =int(input("Enter your age :"))
    if a18 :
    print("yes you can drive if you're having license")
    else:
    print("please Enter your age")

  • @surajbiswas4377
    @surajbiswas4377 4 года назад +13

    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 года назад +1

      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 🤣🤣

  • @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

  • @vinsmalya
    @vinsmalya Год назад +1

    time stamp 9:30
    print("Enter Your Age Here")
    age = int(input())
    if age>18:
    print("Congrats, You are eligible to drive a car")
    elif age==18:
    print("you are at the age of 18, so we cant decide your eligiblity online,"
    "
    You have to come Physically to pass the driving test")
    else:
    print("your age is not enough for driving")

  • @gamingnon-stop8167
    @gamingnon-stop8167 3 года назад +5

    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")

  • @OmerAnwar
    @OmerAnwar 5 лет назад +89

    BRO I AM FROM PAKISTAN I LOVED YOUR VIDEOS and love the way you explain love from pak

  • @FitnessLoverkanpuriya
    @FitnessLoverkanpuriya 2 года назад +1

    print("ENTER YOUR AGE")
    age=(int(input()))
    if 7100:
    if age > 18:
    print('You can drive')
    elif age == 18:
    print('You are 18 And we cany decide. Please come physically.')
    else:
    print('Enter a valid age i.e 7

  • @27-dcstjoshimsk34
    @27-dcstjoshimsk34 2 года назад +1

    age=int(input("enter your age in between 5-100 :"))
    if age100:
    print("please enter a valid age :")
    elif age

  • @simplygamedeveloper7859
    @simplygamedeveloper7859 Год назад +7

    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.")

  • @amoghparab1689
    @amoghparab1689 2 года назад +8

    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")

  • @bharamandevta9847
    @bharamandevta9847 Год назад +1

    a=int(input("what is your age?:"))
    if a>18:
    print("you can drive")
    elif a

  • @ni208
    @ni208 Год назад

    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"

  • @mrinalkumar1077
    @mrinalkumar1077 Год назад +32

    arhar ki daal na mile toh bhindi ki sabji lete aana ....hhahahah...

  • @binodtharu3518
    @binodtharu3518 4 года назад +18

    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 3 года назад

      as per requirement this program is wrong if age is 0 or 1 or -5

    • @shubham8618
      @shubham8618 3 года назад

      Hey BINOD.......!!slay point waala!!!!😀😀

  • @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

  • @devanshtanwar4075
    @devanshtanwar4075 2 года назад +1

    ag1= (18)
    ag2= int(input("enter your age
    "))
    if ag2>ag1:
    print("You can drive :)")
    elif ag1==ag2:
    print("Can't decide
    we will check physically")
    else:
    print("You can't drive")

  • @gurshantmohal9594
    @gurshantmohal9594 2 года назад +1

    print("what is your age")
    age = int(input())
    if age100:
    print("invalid age")
    if age==0:
    print("can not possible")
    elif age==18:
    print("we can not decide ,visit us personally ")
    else:
    print("you can drive")

  • @ayeshakhalid5708
    @ayeshakhalid5708 2 года назад +6

    Thank you so much sir God bless you😍

  • @Jashanvlogssssmr.
    @Jashanvlogssssmr. 3 года назад +12

    Best channel i found for my programming in python....

  • @snivin5618
    @snivin5618 2 года назад

    age = int(input("Enter your age:
    "))
    if age

  • @primetimegamerz
    @primetimegamerz Год назад +1

    print("entre your age")
    age = int(input())
    if age > 100 :
    print("cannot be accepted ")
    elif age < 18 :
    print("you cannot drive")
    elif age == 18 :
    print("we will think about you")
    elif age > 18 :
    print("you can drive")

  • @prajnaparamita3008
    @prajnaparamita3008 3 года назад +20

    """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 года назад

      ruclips.net/channel/UC0IyUoPAzg8U79tqx1YRSEw

    • @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!!
      ruclips.net/video/zO9Z4inmLzM/видео.html

    • @som6553
      @som6553 2 года назад +3

      @@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

  • @mushfiqurrahman3803
    @mushfiqurrahman3803 2 года назад +3

    Age = input (" Enter your age : ")
    if int(Age)>=18:
    Print (" Chal gari Chala")
    else:
    Print (" gari Kay pass bhi maat ja")
    I just started learning like a week ago
    So far I really love the way of your teaching style. Keep it up brother 💕

    • @aasheesh6001
      @aasheesh6001 2 года назад

      bro you are watching 2018 video in 2022

    • @mushfiqurrahman3803
      @mushfiqurrahman3803 2 года назад

      @@aasheesh6001 yes bro. I just started learning. I am trying to follow the tutorial A to Z. So far so good

    • @aasheesh6001
      @aasheesh6001 2 года назад

      @@mushfiqurrahman3803 good luck.

  • @sakshamgirdhar6459
    @sakshamgirdhar6459 Год назад +1

    print('What is your age ?')
    age = int(input())
    if age65:
    print('You are very old to drive.')
    else:
    print('Yes, you can drive')

  • @shekhfaraj4478
    @shekhfaraj4478 Год назад +1

    print("Enter your age")
    age = int(input())
    if age in range (7,100):
    age1 = age
    if age1 < 18:
    print("You cant drive")
    elif age1 == 18:
    print("we will think about it")
    else:
    print("You can drive")
    else:
    print("you entered wrong value")

  • @umairabdullah9041
    @umairabdullah9041 2 года назад +3

    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')

  • @ctrlaltcodeshots
    @ctrlaltcodeshots 5 лет назад +30

    #simple_method
    Print("what is your age")
    age = int(input() )
    If age >=100:
    Print("invalid age")
    elif age

    • @Internetlife007
      @Internetlife007 5 лет назад +1

      Thanks buddy it really help me

    • @vaibhavtapdiya7077
      @vaibhavtapdiya7077 4 года назад

      @Creator AnoNymous no it's correct.......
      I am not getting any type of error msg

    • @harrycreations6825
      @harrycreations6825 4 года назад +1

      Its correct but what if age is equal to 18

    • @akshitmarwaha6857
      @akshitmarwaha6857 4 года назад +1

      print("what is your age")
      age = int(input() )
      if age >100:
      print("invalid age")
      elif age

  • @AnujYadav-mc8nh
    @AnujYadav-mc8nh 2 года назад +1

    print("What is your age")
    age = int(input())
    if age100:
    print("This is not logical age")
    elif age==18:
    print("we are not decide")
    elif age

  • @VineetaChaudhary31
    @VineetaChaudhary31 Год назад +1

    print("Enter your age")
    age = int(input())
    if age>100:
    print("Enter your valdit age")
    elif age>18:
    print("You are ebgbal to drive")
    elif age

  • @shaikzubair5926
    @shaikzubair5926 3 года назад +36

    Im watching these series in 2021 and I'm in b tech final yr!!
    thanks man

    • @nuclergaming9969
      @nuclergaming9969 3 года назад +2

      Bro me bhi hu tere sath😉

    • @zainbaloch4850
      @zainbaloch4850 3 года назад +1

      Me too

    • @gouravsingh235
      @gouravsingh235 3 года назад +1

      me bhi

    • @kiankumar5529
      @kiankumar5529 2 года назад +2

      bhai BTech mein kya padaya please batao mein 12th me hu BTECH lene ka soch raha hu

    • @anmolguleri2148
      @anmolguleri2148 2 года назад +2

      @@kiankumar5529 mt leta bahi bhool kr mt bhi zindgi bhr ryoyega

  • @mudassirraza4066
    @mudassirraza4066 5 лет назад +18

    MashAllah Harry bhai awesome bht allaw isi trah quiz or small projects daity rehna... Thank you so much ...Allah bless you brother

  • @deepeshjantiwal8050
    @deepeshjantiwal8050 10 месяцев назад +1

    print("what is your age")
    age=18
    drive_age=int(input())
    if age

  • @parthdesai7074
    @parthdesai7074 Год назад +1

    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")

  • @kanadjadhav9514
    @kanadjadhav9514 3 года назад +5

    I started learning now😭
    print("your age")
    age=int(input())
    if age >1 and age

    • @Abhishek-yk7ui
      @Abhishek-yk7ui 3 года назад

      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()

  • @saieditx1
    @saieditx1 3 года назад +7

    Age = int(input("enter your age"))
    If age > 18 and age

  • @jainikshah1899
    @jainikshah1899 Год назад

    print("What is your age")
    age = int(input())
    if 7

  • @purvashrivastava6560
    @purvashrivastava6560 Год назад +1

    age=int(input("enter the age here"))
    if age>18:
    print("you can drive")
    elif age

  • @valmikwagh5862
    @valmikwagh5862 2 года назад +36

    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 года назад +2

      I'm not so good at writing programmes but yea learning and so far python is going great 🙂😌

    • @akashbiswas5617
      @akashbiswas5617 2 года назад +1

      Thanks bro for this 🤗

  • @bhaveshwagh2741
    @bhaveshwagh2741 5 лет назад +24

    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"

  • @techsigmarobots
    @techsigmarobots 2 года назад +1

    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")

  • @chandansarkar4681
    @chandansarkar4681 Год назад

    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

  • @muhammadfarhan2493
    @muhammadfarhan2493 2 года назад +5

    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

  • @shivaverma1535
    @shivaverma1535 2 года назад +12

    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

  • @siddheshsorap461
    @siddheshsorap461 3 года назад +6

    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

  • @atharvakinhikar1742
    @atharvakinhikar1742 Год назад +1

    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")

  • @threalbatman
    @threalbatman 2 года назад +1

    print("Enter your age :")
    age = int(input())
    if 6

  • @manthanjagtap6736
    @manthanjagtap6736 2 года назад +4

    #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

  • @Mayank-Pawar
    @Mayank-Pawar 2 года назад +4

    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

  • @sagnikdas1780
    @sagnikdas1780 2 года назад +1

    age=int(input("Enter your age: "))
    if(age100):
    print("Bruh! seriously?")
    elif(age>18):
    print("As you are an adult, you can drive")
    elif(age==18):
    print("We can not decide. You have to visit us to test you whether you can drive or not.")
    else:
    print("You are not an adult. You can not drive")

  • @ankushmallick6968
    @ankushmallick6968 2 года назад +1

    print('Enter your age:')
    age = int(input())
    if age>99 or age

  • @meetmodi9437
    @meetmodi9437 3 года назад +6

    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")

  • @SukhwinderKaur-mo9vi
    @SukhwinderKaur-mo9vi 3 года назад +10

    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

  • @prathahindustangamer345
    @prathahindustangamer345 Год назад +1

    print("Enter your age")
    per1=int(input())
    if per1>18:
    print("You are eligible to drive")
    elif per1==18:
    print("you need to come to my ofice and I will see you physical condition and tell if you are eligible or not")
    else:print("you are not eligible")

  • @syedahaniafatima285
    @syedahaniafatima285 Год назад +1

    print("ENTER YOU AGE FOR ACCESS:")
    age=int(input())
    if age 18:
    print("YOU CAN DRIVE")
    elif age

  • @abhisheksekhri4511
    @abhisheksekhri4511 5 лет назад +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.")

  • @utkarshbisht7273
    @utkarshbisht7273 4 года назад +9

    print("ENTER YOUR AGE:")
    age= int(input())
    if (7

    • @akashkb6905
      @akashkb6905 4 года назад

      In this second if also run when you enter age above 18

  • @user-zx7sy3eg9b
    @user-zx7sy3eg9b Год назад +1

    print("what is your age?")
    age=int(input())
    if age

  • @SamarthRawat
    @SamarthRawat Год назад +1

    print("What's your age: ")
    age = int(input())
    if age in range(7, 100):
    if age > 18:
    print("You are eligible to drive")
    elif age == 18:
    print("You are physically fit to drive, apply for driving license")
    else:
    print("You are not eligible to drive")
    else:
    print("Invalid age entered")

  • @nandiniagarwal1857
    @nandiniagarwal1857 3 года назад +3

    print("Type your age below")
    Age = int(input())
    if Age>18 and Age

  • @420sakura1
    @420sakura1 2 года назад +3

    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.

  • @subodhfulzele6501
    @subodhfulzele6501 Год назад +1

    print ("What is your age??")
    print = int( input () )
    if ( age18) :
    print ("You can drive our lamborghini")

  • @suraj8285
    @suraj8285 2 года назад +1

    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.")

  • @dhruvdosi1589
    @dhruvdosi1589 2 года назад +4

    print('enter your age')
    age = float(input())
    if 7

  • @theyoungsters3511
    @theyoungsters3511 Год назад +3

    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

  • @Baliyan__himanshu
    @Baliyan__himanshu Год назад +1

    var1=18
    var2=int(input("enter your age "))
    if var2var1:
    print("you can drive")
    elif var2==var1:
    print("physically check")
    if var2>90:
    print("you are too old to drive")
    else :
    print("error")

  • @fahadmalik7167
    @fahadmalik7167 2 года назад +1

    print("What is your age?")
    age = int(input())
    if age > 18:
    print("You are eligible for this")
    elif age==18:
    print("We will inform you after verification")
    if age < 18:
    print("You are not eligible for this")