P_29 Multiple if Statements in Python | Python Tutorials for Beginners

  Рет қаралды 89,743

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

Пікірлер: 74
@Arjun5_BH
@Arjun5_BH 2 жыл бұрын
Ma'am This message is a heartfelt message from my side.I am in UPES University 1st year and I didn't used to get anything that used to be taught in class in C. I just want to thank you for saving me in my 1st sem Because of you only I was able to score a decent score in C even after studying just before the exam itself. You are the best teacher one can ever get. The way you teach even such complex topics like array, pointers etc is just amazing.Now I have started to study DSA from your channel .And will remain consistent throughout in my coding journey. Thanks a lot ma'am.
@JennyslecturesCSIT
@JennyslecturesCSIT 2 жыл бұрын
Best wishes 👍
@abhishekkumarjha817
@abhishekkumarjha817 6 күн бұрын
beo i also score 76 marks in dsa biggest score in my bca causeof jenny mam
@marikantipavankumar3476
@marikantipavankumar3476 Жыл бұрын
Ma'am I am saying my heart felt thanks to you,,because the way you taught the c language is really awesome and recently i got the 1st sem results and i was really shocked 😲 that i got 57 out of 60 in c .. I didn't get like this in any other subject.. u r the reason for my happiness still now i can't believing so i decided to watch all the languages from ur channel.....❤
@JennyslecturesCSIT
@JennyslecturesCSIT Жыл бұрын
Keep it up
@dr.adityamalik8210
@dr.adityamalik8210 11 ай бұрын
aisa lag rha h jaise aap sirf mujhe hi pdha rahi h...dekh lijiye hamari is deewangi ne hame aapke 29th lecture pe phaucha diya.....surely i will go to 125th soon
@rsg7281
@rsg7281 Жыл бұрын
for the above example,when we enter height as less than 3,and run the program,it is asking for age as well
@kasunfernando7034
@kasunfernando7034 5 ай бұрын
Love from Sri-Lanka❤
@rizwangibralter
@rizwangibralter 2 жыл бұрын
kindly c++ lectures completed madam immediately....pakistani students also beneficials from yours lectures .....thanks madam.....respected you alot madam......rizwan from pakistan
@mr_affan15
@mr_affan15 2 жыл бұрын
i hope one day i will expert in python programming after got learned & practice through your videos \ Thanks a lot mam 😀 print("To check wheter you are able to ride Roller Coaster or not? ") height = float(input("Input your height: ")) if height > 4.5: print("Congrats! you are able to ride Roller Coaster") else: print("Sorry! you are not able to ride") age = int(input(" input your age: ")) bill = 0 if age > 12: bill = 100 print("Ticket price is $100") elif age > 18: bill = 200 print("Ticket price is $200") elif age > 30: bill = 500 print("Ticket price is $500") elif age > 60: print("you are able to ride") else: print("you are not allowed for ride") photo = (input("Do you want to capture photos?(yes/no) ")) if photo == 'yes' or photo == 'Yes': bill = bill + 50 print(f"final price of your ticket is ${bill}") else: print("ok")
@prudviraju4147
@prudviraju4147 2 жыл бұрын
If the height is less than 4.5 if i give 2 , though it is asking age
@mr_affan15
@mr_affan15 2 жыл бұрын
@@prudviraju4147 no bro u should check it
@prudviraju4147
@prudviraju4147 2 жыл бұрын
@@mr_affan15 ok bro thank you
@Hope-gv6cw
@Hope-gv6cw 8 ай бұрын
Why is if photo== yes or if photo==yes Why doesn't if photo==yes or if photo == no
@SarathReddyKakarla
@SarathReddyKakarla 5 ай бұрын
# multiple if statements height=int(input("what is your height?")) bill=0 if height>=3: print("you can ride") age=int(input("what is your age?")) if age
@karansinghbora4044
@karansinghbora4044 4 ай бұрын
its 2024 and it is still usefull
@bhavesh-kumar-444
@bhavesh-kumar-444 2 жыл бұрын
Love from varanasi
@shiv_gourav
@shiv_gourav 7 ай бұрын
Lecture 29✅ Lecture 125, I am coming.
@aeri2300
@aeri2300 Жыл бұрын
Is it necessary to write bill=0 at the top? Won’t the program work just fine without it?
@NathanLukambinga
@NathanLukambinga Жыл бұрын
Its not must but it depend on how you structure your logic. But its adviced to initialize the variable if you are going to change it with an updated summation. For example Bill =0 If (you>1): Bill+=30 print("Bill") Here the output will be 30. So by initializing bill=0, hence you provide a clear reference of memory of a previous bill value
@aeri2300
@aeri2300 Жыл бұрын
@@NathanLukambinga thanks a lot!
@JITHINJOHN-k2d
@JITHINJOHN-k2d 3 ай бұрын
It is not necessary in the case of python but in c, c++, java it must because other sometimes it shows error
@mahwishkundi3373
@mahwishkundi3373 Жыл бұрын
Thanks Jenny! you worked amazing. Can you please update that either you have some videos for using python for ML algorithms.
@husnainhyder6713
@husnainhyder6713 Жыл бұрын
Dear Miss Jenny Have a nice day Your video lecture is helping a lot but can you recommend a good book to study python. A huge bundle of thanks from Pakistan.
@venkat9749
@venkat9749 2 жыл бұрын
Thanking you for new video Ma'am
@akashsundar2495
@akashsundar2495 2 жыл бұрын
I love your teaching mam
@dr.adityamalik8210
@dr.adityamalik8210 11 ай бұрын
but i love mam only😍😍
@code_cam_edu_007
@code_cam_edu_007 Жыл бұрын
Mam when i try the above roller coaster Code i was getting indentation error again and again by changing and running the and again it was giving me the same answer please give me a solution about this mam.what should i want to do . Another thing mam i was doing it in my mobile 📱 itself at present i dont have any laptop.
@venkatanaveen4831
@venkatanaveen4831 Жыл бұрын
h=float(input("enter persons height: ")) if h >= 6 : print("you are allowed inside") a=int(input('enter persons age')) if a >= 18: ticket = 300 print("your ticket price is 300 Rs ") elif a >= 10: ticket = 200 print("your ticket price is 200 Rs ") else : ticket = 0 print("enjoy free ride ") photo = input('need photo say Y or N ') if photo.lower() == 'y': print('you need to pay 50 Rs extra ') pticket = ticket + 50 print(f"your total price with photo is {pticket}Rs ") else : print('you have not opted for photo') print(f" your total amout is {ticket}Rs") pticket=ticket food = input("Need food say Y or N") if food.lower() == 'y': food_choice = input('select veg or nonveg') if food_choice.lower() == 'veg': print("you have selected veg you need to pay 150 Rs") foodbill = 150 total_amount = pticket + foodbill print(f'your total price include food and photo is {total_amount} Rs ') elif food_choice.lower() == "nonveg" : print("you have selected nonveg you need to pay 300 Rs") foodbill = 300 total_amount = pticket + foodbill print(f'your total price include food and photo is {total_amount} Rs ') else : print('you have not opted anything invalid choice:') foodbill = 0 total_amount = pticket + foodbill print(f" you need to pay {pticket} Rs ") else : print("you have not opted food ") print(f'total bill without food is {ticket} Rs') else : print('you are not allowed for the play') print('thank you for visiting have a nice day')
@alok_kr_verma
@alok_kr_verma Жыл бұрын
height=int(input("enter your height in feets=")) if height>3: print("you can take a ride") age=int(input("enter your age=")) photos=int(input("you want to take photos.If yes then enter 50 otherwise 0::")) if photos==50: if age
@sathwikchinta8669
@sathwikchinta8669 Жыл бұрын
height=int(input("enter the height")) if height>6: print("you can write") else: print("you cannot ride") age=int(input("enter the age")) photo=int(input("enter the photo money")) if (age15): print(f"pay {photo+180}") else: print(f"pay {400+photo}")
@xavdok
@xavdok 6 ай бұрын
It is wrong.
@pwinsider-pwpupil5319
@pwinsider-pwpupil5319 3 ай бұрын
height= float(input("Enter your current height:")) if height >=3: print("You can take ride") age = int(input("Enter your current age:")) # Bill=0 if age = 12 or age =18: print("Your ticket price is 500") Bill=500 want_photos=input("Do you want to take photos(Y/N)") if want_photos == 'y'or want_photos == 'y': Bill= Bill + 50 print(f"You have to pay : {Bill} ") else: print(f"you have to pay {Bill}") else : print("You can not take ride") print("BYY") also Done from my side.
@slothylyn3589
@slothylyn3589 7 ай бұрын
Hi thanks for all those video. I have a question when i put age = 10 , I have those 2 reply : Tickets price 150 Rs and Ticket price 250 Rs...
@glps369
@glps369 Жыл бұрын
Thank You So Much
@snehakumari4331
@snehakumari4331 Жыл бұрын
ht=float(input("Enter your height: ")) if ht>3: print("You can take rides") age = int(input("Enter your age: ")) if age
@johnjulius9833
@johnjulius9833 Жыл бұрын
when do we get CHAINED CONDITIONAL video Jenny ma'am? thank you for all you do. ❣❣❣❣
@avinashhedau6785
@avinashhedau6785 2 жыл бұрын
Mam can you take classes on neural network
@meghavishwakarma30
@meghavishwakarma30 Жыл бұрын
'yes' i want to take photo with you❤
@prudhvijeeja__9461
@prudhvijeeja__9461 11 ай бұрын
bill = 0 height = int(input("Enter your height :")) if height >= 3: print("you can ride.") age = int(input("Enter your age :")) if age
@Victosariya
@Victosariya 10 ай бұрын
Good work madam
@navyakrishnamneni
@navyakrishnamneni Жыл бұрын
for expresion input : want_photo==n, program showing wrong out put note: see below code height=int(input("enter your height: ")) bill=0 if height>=3: print("you can ride") age=int(input("enter age: ")) if age
@bbalaji6452
@bbalaji6452 Жыл бұрын
height = float(input("enter your height : ")) bill = 0 if (height >= 3) and (height < 7): age = int(input("enter your age : ")) if age < 12: bill = 150 elif age
@TriveniTriveniGadela-ov9fr
@TriveniTriveniGadela-ov9fr 5 ай бұрын
Mam why don't you wrote leap year program in this wayy
@navyakrishnamneni
@navyakrishnamneni Жыл бұрын
height=int(input("enter your height: ")) bill=0 if height>=3: print("you can ride") age=int(input("enter age: ")) if age
@Aravindofficial04
@Aravindofficial04 Жыл бұрын
height = int(input("Enter the Height : ")) amount = 0 if height >= 3: print("You can ride") Age = int(input("Enter Your Age : ")) if Age
@bhaveshvaishnav633
@bhaveshvaishnav633 Жыл бұрын
thank you!!
@dodciletina9985
@dodciletina9985 8 күн бұрын
height = int(input(" enter the height in feet:")) if height >=3: print("yes you can ride ") else: print("NO you cant not ride it") age = int(input("enter your age :")) if age
@coding_with_bf
@coding_with_bf Жыл бұрын
height=int(input("Enter your height in meters: ")) if height>=3: print("❤️Be ready for riding❤️") age=int(input("Enter Your age: ")) if age=12 and age
@LingeshhvarenKA
@LingeshhvarenKA 17 күн бұрын
height = int(input("Enter your height : ")) if(height>=150): print("You can ride") age = int(input("Enter your age :")) if(age
@AnirudhKumar-l7r
@AnirudhKumar-l7r Жыл бұрын
height = int(input()) if height>=3: print("can ride") age=int(input()) photo = bool(input()) if age
@hajarbenzakour6583
@hajarbenzakour6583 Ай бұрын
height=int(input("enter your height in ft:")) bill= 0 photo_bill=5 if (height >=3): print("you can ride") age=int(input("enter your age:")) if (age
@kunaldas5011
@kunaldas5011 11 ай бұрын
age=int(input("Enter a age: ")) photos=50 input_responce=input("do you need ride?(yes:no):") if input_responce=="yes": if age
@HERakshithKumar
@HERakshithKumar 2 жыл бұрын
Mam!! can u plz teach javaa tooo...
@googlyfelix462
@googlyfelix462 2 жыл бұрын
Ma'am upload c++ videos also plzz
@icee32q
@icee32q Жыл бұрын
sorry mam par apke jesi mam hamari college me ho jo achhe se padhaye and she looks this type of pretty and cute to lecture kabhi bunk hi naa Ho
@dbjindian
@dbjindian 2 жыл бұрын
Very nice tutorial..
@gamingwithsane762
@gamingwithsane762 3 ай бұрын
If jenny mam likes my comment i will die out of happiness ❤
@JITHINJOHN-k2d
@JITHINJOHN-k2d 3 ай бұрын
age=int(input("Enter your age:- ")) bill=0 if age>=12 and age=12 and age18 and age=30 and age
@LingeshhvarenKA
@LingeshhvarenKA 17 күн бұрын
height = int(input("Enter your height in cm : ")) if (height>=150): print("You can ride Rider ticket price is 150 for age under 12 Rider ticket price is 250 for age 12 to 18 Rider ticket price is 500 for age above 18") age = int(input("Enter your age : ")) photo = input("Do you want to take photos? Rs50 for photos (Enter Y for Yes and N for no) : ") if (age
@MARUTHU_1801
@MARUTHU_1801 6 ай бұрын
user_input = input("which field are you choosing to pursue?: ") if user_input == 'engineering' : which_engg = input("under engineering,which stream are you decided to enter?: ") if which_engg == "mech" : print(f"Anna university is best to study for {which_engg} engineering.") else: print(f'IIT,IIM,BITS were good place to study {which_engg}.') elif user_input == 'goverment exams' : which_govt_exam = input('for which exam you are going to prepare?: ') if which_govt_exam == 'upsc' : print(f"central govt affiliated centers is the best option to study incase os {which_govt_exam}") else: print(f'there are many govt as well as private institutions are there to learn the {which_govt_exam}.') else: if user_input == 'medical' : which_medical = input('among all branches,which was you choosed to learn?: ') if which_medical == 'mbbs' : print(f"goverment colleges were the best place to learn the {which_medical}.") else: print(f'all deemed universities are the right spot to study the {which_medical}') print(f"I wish you all the best for your successful carieer upliftment.i pray the omnipotent god to assist you,for your preparations on ypur {user_input}")
@vishnumuraly18
@vishnumuraly18 Жыл бұрын
height=int(input("Enter your height :")) total=0 if height
@sajileee
@sajileee Ай бұрын
Height = float(input("Enter Your Height in Feet : ")) Bill = str(0) if Height >=3: Age=float(input("What is your Age : ")) if Age
@priyankabaskula5900
@priyankabaskula5900 Жыл бұрын
🎉
@MARUTHU_1801
@MARUTHU_1801 6 ай бұрын
visitor_height = int(input("enter your height: ")) if visitor_height >= 3: visitor_age = int(input("enter the age: ")) if visitor_age
@LingeshhvarenKA
@LingeshhvarenKA 9 ай бұрын
height=float(input("Enter your height in meter : ")) if(height >= 1.5): print("You can ride") age=int(input("Enter your age : ")) print("Enter y to take photo and n for not needed") photo=input("Enter here : ") if(age
@sudhakarjalla9067
@sudhakarjalla9067 Жыл бұрын
@bhavesh-kumar-444
@bhavesh-kumar-444 2 жыл бұрын
First view
@aswin.s768
@aswin.s768 Жыл бұрын
height=int(input("Enter your height: ")) Total=0 if height>3: age=int(input("Enter you age: ")) if age18: print("Pay 500 ") Total = Total + 500 else: print("Pay 300") Total = Total + 300 y=input("Do you want to take photo \"type y for yes and n for no\" : ") if y or Y in y: print("Pay 50 rs") Total = Total + 50 print(f"Pay rs {Total} in total") else: print("Thank you for showing your interest,but your age is short")
String Formatting in Python (Part 1)
23:06
Neso Academy
Рет қаралды 33 М.
요즘유행 찍는법
0:34
오마이비키 OMV
Рет қаралды 12 МЛН
Sıfırdan Python Dersleri Ders 6: If - elif - else
23:06
Python'a Giriş
Рет қаралды 99 М.
P_32 List in Python and List Functions | Python Tutorials for Beginners
29:01
Jenny's Lectures CS IT
Рет қаралды 196 М.
If statements in Python are easy (if, elif, else) 🤔
8:21
Bro Code
Рет қаралды 171 М.
If & If Else Conditional Statements in Python | Python Tutorials for Beginners#lec24
18:41
Multiple "if" statements vs. if-elif-else: What's the difference?
9:47
Python and Pandas with Reuven Lerner
Рет қаралды 14 М.
While Loop in Python | Python Tutorials for Beginners #lec50
26:51
Jenny's Lectures CS IT
Рет қаралды 95 М.
If Else Statements in Python // Python RIGHT NOW!! // EP 4
14:19
NetworkChuck
Рет қаралды 437 М.
The if Statement in Python
18:25
Neso Academy
Рет қаралды 20 М.
Python Programming Tutorial - Nested if statements | if elif else Ladder
9:34