Nested If Else & elif Statements in Python | Python Tutorials for Beginners

Поділитися
Вставка
  • Опубліковано 1 гру 2024

КОМЕНТАРІ • 68

  • @nitishkalkolvi7081
    @nitishkalkolvi7081 Рік тому +22

    I usually never written a comment Though graduated from A+ accredited college and yet wasn't trained properly on python.... But you're teaching made python so easy to me... All thanks to you mam :)

  • @acchuanjan6638
    @acchuanjan6638 6 місяців тому +5

    num=int(input("enter a number:"))
    if(num0):
    print("one")
    elif(num1):
    print("two")
    elif(num2):
    print("three")
    else:
    print("wrong input")

  • @aviranarang6568
    @aviranarang6568 Рік тому +2

    You working hard,
    God bless you always

  • @SRIRAM..
    @SRIRAM.. Рік тому +1

    ❤love u jenny, for the way of telling.

  • @MARUTHU_1801
    @MARUTHU_1801 4 місяці тому +1

    gender = input("enter the gender of the passenger: ")
    if gender == 'Female':
    print("there is no fee for your journey.")
    print("have a happy journey.")
    else:
    print("you need to buy a ticket.")
    age = int(input("enter your age: "))
    if age

  • @shahanafaslu
    @shahanafaslu Рік тому +3

    Thank you mam for your great work…

  • @sidharthkaruvarath2532
    @sidharthkaruvarath2532 Місяць тому +1

    number = int(input("enter the number : "))
    if number % 2 == 0 :
    print("Its an even number")
    if number == 2:
    print("Its two!!")
    elif number == 4:
    print("Its four!!")
    elif number == 6:
    print("Its six!!")
    else:
    print("Not readable!!")
    else:
    print("Its an odd number")
    if number == 1:
    print("Its one!!")
    elif number == 3:
    print("Its three!!")
    elif number == 5:
    print("Its five!!")
    else:
    print("Not readable!!")
    print("Finished!!")

  • @muhammadal-fateh6768
    @muhammadal-fateh6768 Рік тому

    Thanks god by giving me the complete lecture of python from sweety lecturer❤

  • @jamessangitboiragee5222
    @jamessangitboiragee5222 8 місяців тому

    Ma'am thank you soo much for this, take love from a fellow student

  • @Dheerajkumar-ve9wg
    @Dheerajkumar-ve9wg 10 місяців тому +1

    User_height = int(input("Enter your height "))
    if(User_height>5):
    print("You can ride it")
    User_Age = int(input("Enter your age "))
    if(User_Age>18):
    print("You have to pay 200 rupees")
    else:
    print("You ride is free")
    else:
    print("Sorry You can not ride it its dangerous")

  • @RusselJohnDiccion-nk5ti
    @RusselJohnDiccion-nk5ti 5 місяців тому

    This tutorial is very clear my gosh

  • @sakshamkapasia4405
    @sakshamkapasia4405 Рік тому +1

    Thanks maam 🙏

  • @vishalchakraborty2050
    @vishalchakraborty2050 2 місяці тому

    Thanks alot Ma’am 🙇‍♂️

  • @chimmi75
    @chimmi75 Рік тому

    Brilliant and clear explanation, the examples were great

  • @Snehajp
    @Snehajp Рік тому

    thanks, very clear with good explanation.

  • @A_M_A_N794
    @A_M_A_N794 10 місяців тому

    Nice Explanation Mam

  • @Rajkumar-ob8og
    @Rajkumar-ob8og 9 місяців тому +1

    clear explanation,thanks to all mam :)

  • @VirusBabaTechnical
    @VirusBabaTechnical Рік тому +1

    हाय क्या पढ़ाती है दिल ले गई अब जल्दी से मेरा दिल दे दीजिए ❤️

  • @mr.mohameddahir3917
    @mr.mohameddahir3917 11 місяців тому

    Thank you teacher

  • @bittuagarwal9517
    @bittuagarwal9517 Рік тому +1

    Thanks ma'am

  • @GANESHM-cl5po
    @GANESHM-cl5po 7 місяців тому

    Love a lot mam❤❤

  • @bhaveshvaishnav633
    @bhaveshvaishnav633 Рік тому

    Thank you!!

  • @rajivanjr3405
    @rajivanjr3405 8 місяців тому

    # nested if else (condition statement)
    # if inside if is nested if \elif
    Name=input("Enter your name to start the ride:")
    Height=int(input("Enter your height in feet:"))
    if Height >3: #if main if pass it will go to nested if or it goes to else
    print("You can ride")
    Age=int(input("Enter your age:"))
    if Age

  • @gksgaming9655
    @gksgaming9655 Рік тому +1

    I want to listen the class seeing you ❤❤❤

  • @glps369
    @glps369 Рік тому

    Thank you so much

  • @amtprajapati02
    @amtprajapati02 Рік тому

    Thanks ma'am ❤🎉😊

  • @simpalcode4971
    @simpalcode4971 Рік тому

    Osm mam i understand quickly

  • @sidharthkaruvarath2532
    @sidharthkaruvarath2532 Місяць тому

    height = float(input("Please enter your height in feet : "))
    age = int(input("Please enter your age: "))
    if height > 3:
    print("Yes, you can ride!!!")
    if age

  • @dilhara9521
    @dilhara9521 Рік тому +1

    Mam your awesome day by bay you been most beautiful 🥶

  • @alaashakir1712
    @alaashakir1712 9 місяців тому

    thank u

  • @ankireddy-i7o
    @ankireddy-i7o 2 місяці тому

    Hi Jenny, Your lecturers are super. Thanks you so much for giving in detailed explanation.
    I have a one question regarding the application which you are using for the practice. I am using Jupiter note book but i didn't find such a a good options like in your practice application. Could you please suggest which one you are using. thanks.

  • @janedeo9358
    @janedeo9358 Рік тому

    The explanation looks great. however the prices are a bit expensive for a roller coaster ride can you make a tutorial with cheaper prices.

  • @MNarendrareddy9030
    @MNarendrareddy9030 Рік тому +6

    Kindly tell which site is best to learn SQL

  • @MahendriSingh-hu7mk
    @MahendriSingh-hu7mk 3 місяці тому +1

    Ma'am you are a c,c++,java background why are you not teaching java please ma'am you can teach java programming language my humble request for you ma'am aap bahut acche se har ek point clear kar deta ho thankyou ma'am I hope you know my humble request 😅😅😅😅

    • @JennyslecturesCSIT
      @JennyslecturesCSIT  3 місяці тому +2

      Will consider this .and will think about it

    • @MahendriSingh-hu7mk
      @MahendriSingh-hu7mk 3 місяці тому

      @@JennyslecturesCSIT Okh ma'am thankyou Jenny ma'am Mai apki java series ka wait karunga 😅😅

    • @SunnySharma-ey4pj
      @SunnySharma-ey4pj 2 місяці тому

      ​@@JennyslecturesCSIT
      It's paid

  • @skupdates-uk1ld
    @skupdates-uk1ld 9 місяців тому

  • @kavibisht1995
    @kavibisht1995 2 місяці тому

    Mam which platform you used in this video

  • @sikandergalaadhvi
    @sikandergalaadhvi Рік тому

    thanks mam

  • @kunaldas5011
    @kunaldas5011 10 місяців тому

    #2 nd program of nested if else
    no=int(input("enter your no:"))
    if no==0:
    print("no is zero")
    elif no==1:
    print("number is one")
    elif no==2:
    print("number is two")
    elif no==3:
    print("number is three")
    elif no==4:
    print("number is four")
    elif no==5:
    print("number is five")
    else:
    print("sorry your number is not in list")
    print("soory")

  • @playgames434
    @playgames434 Рік тому +1

    Mam c++ ki series kab sa start hogi

  • @sandhyagunjali3515
    @sandhyagunjali3515 3 місяці тому

    Mam what if there are more than 4-5 conditions?

  • @kunaldas5011
    @kunaldas5011 10 місяців тому +1

    height=int(input("enter your height:"))
    if height>=4:
    print("you can ride")
    age=int(input("enter your age"))
    if age>18:
    print("you have to pay 500 rs")
    else:
    print("you have to pay 200 rs")
    else:
    print("you can't ride")
    print("soory")

  • @akashtg6646
    @akashtg6646 Рік тому

    Does if else and elif are both same?

  • @PurushothamanT23BCS008
    @PurushothamanT23BCS008 Рік тому

    Look nice❤ way of teeching

  • @MahendriSingh-hu7mk
    @MahendriSingh-hu7mk 2 місяці тому

    Ma'am you are launching java with DSA ma'am appne meri baat man li thankyou so much ma'am but ma'am mai is course se padhna to chahta ho but mai ye fees nhi pe kar sakta ho my parents are not eligible to pay this fees ₹9000 this help me ma'am please ma'am Maine aapse bolo tha ki app java series start kare isliya mai ma'am kahe raha ho please mujhe ko bhi add kar ligye ki mai bhi 19th September se class attend kar saku please ma'am you are know my feelings 😢😢.

  • @archanalakade2359
    @archanalakade2359 Рік тому

    Mam please explain how to define function concept

  • @aviranarang6568
    @aviranarang6568 Рік тому

    Mam, Tableau pe video bnaiye

  • @anuragsaxena2851
    @anuragsaxena2851 Рік тому

    Mam glasses Kahan se magaye???? Lenskart se????

  • @varunkumargakkula3958
    @varunkumargakkula3958 Рік тому

    Can anyone suggest me best channel for data structures through python

  • @noormuhammad7301
    @noormuhammad7301 Рік тому

    Salam maam from Pakistan noor Muhammad

  • @amtprajapati02
    @amtprajapati02 Рік тому

    Last program does not solve by me pls

  • @Ameyzing_
    @Ameyzing_ Рік тому

    Main to mechanics wala hu

  • @Mahi-co7ne
    @Mahi-co7ne Рік тому

    Hi mam

  • @allpurposemedia152
    @allpurposemedia152 Рік тому

    Mam can u kindly teach the series of software engineering it will be really helpful

  • @MNarendrareddy9030
    @MNarendrareddy9030 Рік тому

    Hai

  • @ganajigarisrikanth2205
    @ganajigarisrikanth2205 Рік тому

    Mam nots pleis

  • @143saubhagya
    @143saubhagya 8 місяців тому

    glasses jach rehe he maam

  • @kaleeskumar3996
    @kaleeskumar3996 Рік тому +2

    Mam i dont understand elif😒😒😒

  • @vemulasuman6995
    @vemulasuman6995 Рік тому

    I love you madam

  • @HarryDiaries
    @HarryDiaries Рік тому

    plss dont be so cute focus nai krr para

  • @subratkumarsahoo1946
    @subratkumarsahoo1946 10 місяців тому

    beautiful explanation and u also look so pretty and beautiful