If Else Conditional Statements in Python | Python Tutorial - Day #14
ฝัง
- เผยแพร่เมื่อ 10 ธ.ค. 2022
- Python is one of the most demanded programming languages in the job market. Surprisingly, it is equally easy to learn and master Python. This python tutorial for absolute beginners in Hindi series will focus on teaching you python concepts from the ground up.
Access the Playlist: • Python for Beginners (...
Link to the Repl: replit.com/@codewithharry/14-...
Join Replit the browser-based IDE used in this course - join.replit.com/code-with-har...
►Checkout my English channel here: / @programmingwithharry
►Instagram: codewithharry
python, C, C++, Java, JavaScript and Other Cheetsheets [++]:
Playlist: • Coding CheatSheets 🧾 b...
►Learn in One Video[++]:
Python[15 Hr]: • Python Tutorial For Be...
Python Advance[3.5 Hr]: • Python Programming Cou...
Python[1 Hr]: • Learn Python In Hindi ...
Python[2 Hr]: • Python Tutorial In Hin...
Python[15 Min]: • 15 Minute Python Tutor...
JavaScript[1 Hr]: • JavaScript Tutorial
C[1.3 Hr]- • C Programming Tutorial...
php[1 Hr]: • Learn Php In One Video...
php[2.3 Hr]: • Php Tutorial for Begin...
php[Project]- • Login And Registration...
HTML[30 Min]: • HTML 5 Tutorial For Be...
CSS[8.5 Hr]: • CSS Tutorial In Hindi ...
CSS[1.4 Hr]: • CSS 3 Tutorial For Beg...
Wordpress[3.2 Hr]: • How To Make a WordPres...
Angular[2 Hr]: • Angular Tutorial in Hindi
Java[2.3 Hr]: • Java tutorial in hindi 🔥
Web Scraping[1 Hr]: • Web Scraping Tutorial ...
MongoDB[2 Hr]: • MongoDb Tutorial For B...
Numpy[1 Hr]: • Numpy Tutorial in Hindi
Android Dev[12 Hr]- • Android Development Tu...
Linux[1 Hr]: • Linux Tutorial For Beg...
JQuery[1.1 Hr]: • jQuery Tutorial For Be...
Git and GitHub[1.1 Hr]: • Git & GitHub Tutorial ...
►Complete course [playlist]:
React: • React Js Tutorials in ...
Python- • Python Tutorials For A...
OOP Python- • Object Oriented Progra...
Java: • Java Tutorials For Beg...
JavaScript- • JavaScript Tutorials I...
PHP- • PHP Tutorials in Hindi
C- • C Language Tutorials I...
C++- • C++ Tutorials In Hindi
Git & GitHub- • Git and GitHub Tutoria...
Android Dev- • Android Development Tu...
Python GUI- • Python GUI: Tkinter Tu...
Web Development- • Web Development Tutori...
Python Django: • Python Django Tutorial...
Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
Data Structure and Algo: • Data Structures and Al...
Follow Me On Social Media
►Website (created using Django Rest & Angular): www.codewithharry.com
►Facebook: / codewithharry
►Instagram: / codewithharry
Twitter: / codewithharry
Comment "#HarryBhai" if you read this 😉😉
Maza aa rha hai?
Yes sir
good
dimag ke dhakkan uda diye bhaiya 🤯
bohot mja aa rha h🤗
Boohat maza aa rha hai.,
Bhaiya
palang tod
print("I am Present")
Thanks sir for everything . You are my first teacher by which my coding journey started.When I start my journey , I m worked on mobile but now I builded my own pc . I know my English is not good 😁 but I wants to express my feeling . Channel "code with Harry " deserves 20M subscriber . Your teaching skill is very different form any other teacher. I don't know you read but if you read " Thanks Harry bhi❤️ "
More than that...
Learn english class before this
@@ilyprince shut up ..... even they tried to speak.
@@ilyprince improve your own English first.
@@ilyprince phale apni english to sahi kar lo bahi
Learn english class before this❌
learn english first✅
Bro apka padhane ka speed sabse badhia he. Hum bahat se logo k liye programing new cheez he . To smasjhne me thoda time lagta he aur pura starting se samsjhna padta he. hats off to u bro for not getting swayed by users who constantly keep telling you to speed up or give tough things to do. Ap apne speed se chalo bro. Jise zyada hi advanced pasand he to aur koi channel dekh le ya fir udemy me course karle.
right 😍😊
🤕
Bilkul sahi lone bro
Bhai awesome hai harry bhai. Mujhe ye doubt hai ki
Completed_course=int(input())
Print("I did all 100 days of coding successfully")
If Completed_course=100:
Print("Will people even take me in interviews for an IT job? What will be my level?")
elif Completed_course=>100:
Print("100 Days+ Some Projects from Harry bhai will make me ready for a job?")
else:
Print("Im sure that i know nothing,i'll get nothing lol")
@@ambrishdubey2241
1) most important is DSA to crack interview
2) projects
3) cs core subject (DBMS,os,oops,cn,.......)
Do this 3 things
The material that he is teaching is beyond expectations ....people after taking lacs through their courses are not nearby to him ... Salute to your efforts... keep inspiring and keep going
Code Backup Repository: github.com/CodeWithHarry/100-days-of-code-youtube
Hello Harry bhai ye if statements me condition ko parenthesis nhi diye to chalta hain kya? kyu ki maine dono trha run krke dekhe hai it ran the program.
do you have discord??
i would like to chat with you
day 14 done....alag hi level ki khushi ha k waqai python samjh arhi ha...thanks for this 100 days of coding...
Harry bhai u are a great man yr sch me aap ki bat krni ka tarika bahut acha hai ek dm khul ke esa lagta hm kisi teacher se nii bade bhai se pd rahe hai jo hm ko hath pkd ke pdna sikhara hai
I love the way you start explaining sir
Hat's off to you 😀
6:27
It's not under else loop.
It will be considered as "indentation error" if we want it to do under else.
for i in range(1,12,3):
print(i)
in this code
a= first argument
b= second argument
c= third argument
if(a+c
Just a big humble thank you Harry. Enjoying each and every lecture and practicing too...
You are the inspiration for so many peoples sir
Appreciate your work 🙏
Really appreciate how you make understand to us, bahut koi english me ulti kar k chale jaate h kuch smjh ni aata but you are really doing well sir🙋♂️
the way you explained nested-if was fantastic !!!!
Bhaiya plz provide practice questions 🙏🙏🙏 . It will very helpful for us .
Love u Harry bhai
For this amazing work 🥰🥰
have you tried practice question related to topic from anywhere if yes let me knw as well
Day 14 Streak is on 🔥🔥🔥🔥 Josh is HIgh We love you harry Bhai ❤❤ Thank You so much for making such an amazing videos very interesting and easy to understand Salute to you and your hardwork and commitment 🫡❤
Bhaii me Pakistan sy ho Apki Sb videos Boht Achi hen ❤️🥰
@@ammadhk90 me too
U r in which clg
Really excellent work sir, really appreciated training by you, keep it up
Bhai please ek video replit ke upper bnana zaroor please harry bhai mene apki python ki 12 hours wali video dekhi thi per ziada practise nhi ki thi is liye dobara revision kar rha hoon is series se asal mai mujhe kuch logo ne bola tha ke programming ke liye boht maths required hoti hai is liye mai chor dia tha lekin apki videos se sach maloom hua by the way love from Pakistan
Asslamualaikum Harry Sir ! Kindly Provide Practice Questions and Quizzes.. Thanks
Day 4 of #100DaysOfCode. Today, in this video 14, I discovered if-else, if-else-elif, and nested if-else-elif statements for conditional programming. I learned how to check and execute different code blocks based on the truthfulness of expressions, enabling me to create more complex and dynamic programs that can respond to various conditions.
Thank You Harry Bhaiya.
Will u explain me how u created programs..?
i just finished , i use two of examples provided in this tutorial and make a function where i can get a input and can make the computer to tell me whatever the number is 0 or bet 10 or bet 20 or above 20 , by the way i use bing ai and it write this code in just 5 sec and understandable
I have done all this before but i think that soon enough i will be learning new things.
import time
timestamp = time.strftime('%H:%M:%S')
print(timestamp)
t1 = int(time.strftime('%H'))
print(t1)
if (t1==range(5,12)):
print('Good Morning Sir')
elif(t1==range(12,17)):
print("Good Afternoon Sir")
elif(t1==range(17,20)):
print("Good Evening Sir")
else:
print("Good Night Sir")
Thanks Harry Bhai! My Day #14 completed!
I would recommend all my brothers and sisters to work over projects which includes Nested Conditional Statements..
Loving the videos...
Thank You Harry Bhai :)
Thanks Harry Brother for taking this initiative.
Hello Harry ... bhaiya
I am currently study in class 11 and your video's are really helpful for me ...
I feel defficulty in WHILE , loop.range and alll...
Plase make a next video on that topic ...
And pls. Tell us how to make a pyramid. Using *.
Really addicted to you videos ❤️
same I am also in class 11th
Thats cool bro, I also started programming when I was at studying class 11
Keep learning and it will take you a long way bro!
@@hajimeippo804 Thanks bro
You can refer my lecture on loops
th-cam.com/video/83iyGPXJTd4/w-d-xo.html
Just give it a try
i am class 7
#harrybhai give some practice programs ...they will also help us in practicing and the flow of coding will be exciting...
Bhai ap ki python ki old playlist se mai python sekh raha tha jo ap ne 2020 mai create ki thi ab ap ne bohat acha kam kia hai ise dubara start kr k thanks but ap dubara se quiz ,excersice do na
Best teacher ever ❤ thanks you harry
This course is awesome 🔥🔥
In shell i am writing python 04nested.py it is showing no such file in directory
You can also create a calculator with elif statement :-
num1= int(input('enter the value1:- '))
num2= int(input('enter the value2:- '))
OPR=input('Enter the OPR..')
if OPR=='+':
print(num1+num2)
elif OPR=='-':
print(num1-num2)
elif OPR=='*':
print(num1*num2)
elif OPR== '/':
print(num1/num2)
else:
print('Invalid OPR')
Thanks for this lecture Bhai Harry😊
Day-14 Done..... :)
thank you harry b bhai
please add day 14 replit,day 13 ki replit hai discription me
a = int(input("Enter your birth of year :"))
b = 2023 - a
print("your age is :", b)
if (b
good one bro hahah not bad, good practice for the lecture also. picking up pretty great
Ji sir bahuut mza aarha thank you so much for providing master course in Easy way 💖✨
You are simply briliant!!!!!!❤❤
if (code_with_harry >= Prime_minister):
print("desh badalne wala hai")
else:
print("khatam")
Else :
print ("desh chodke chale jaana hai 😂")
dont be a shit like him
stay serious@@KoushikDas2005
Hello Harry,
I am your follower and I watch your videos everyday. Thanks for giving us a best knowledge of programming and we know you will make best videos in the future as well. I am eagerly waiting to see you at Sandeep Maheshwari show.
I am also excited to see those video
nice explanation harry bhai loving your videos
Thanks sir for giving best video 🥰🥰
First
Just love your videos
Your dedication and your commitment is next level
And also your presentation has become better than before 🤩
th-cam.com/video/lruTsYEJkGo/w-d-xo.html
Thank you for your efforts.
Harry, You are amazing!!
Thanks Budduy, it helped me a lot . happy by your tutorial
This course is very helpful!
Thank you Harry Bhai!
Bhai apko pata ha day 14 ksy repil py dakhy gy
# Day-014
# Date-11/12/2022
# Time-17:33 pm
# ifelse conditional statements
#Programm to print your age group
age=int(input("Enter your age in whole number:"))
if(age==0 or age==1):
print("You are Infant")
elif(age>=2 and age=5 and age=13 and age=20 and age=40 and age=60 and age
At 17:58 what should be the outside??
Error 404
The user is sleeping
Sir ur voice is awesome ❤ and the way you teach is on super level ❤
Love from Haryana Harry Bhai 💕
a=int(input("enter your age"))
if a
Attendance="Present day 13"
print(Attendance.replace("13" , "14"))
haha
Kitne tejasvi log h yhaa
Its as same as c++ but we use && for logical operation in c++ and "and" in python
Han barabar hai,vaise mai dono kar raha hu c++ and python.
13:24 The way he explain programming using real life example is superb...
Present sir 🤚
Love from Bangladesh ❤
Hate from India
Great video sir
Harry Bhai, You Are Amazing!!!!
Harry Bhai try to give task (HW) in every Video. Practice is very important in programming
Task 2:
Take a number from user and check whether it is even or odd :
inp = int(input("Enter a integer: "))
if inp%2==0:
print("Number is even")
else:
print("Number is odd")
Kindly define %2==0
@@preetrathore2513 % is the modulus operator which divides a number and returns the remainder. Here inp is a integer which is divided by 2. When the remainder is 0 the code in the if block is executed otherwise the code in the else block is executed
@@arpankarmakar15 Thankyou dear for explanation now concept cleared!
@@preetrathore2513 🙂
Harry bhai aap great ho itna expensive course bhi hame free me provide karte ho. Thank you
import time
timestrap1 = time.perf_counter()
print(timestrap1)
if timestrap1[3] in (1,2,3,4,5,6,7,8,9,10,11,12):
print('good morning')
else:print('good night')
we're not covered conditional operators yet right? hope you'll cover this in future lessons. we've only covered arithmetic
Bhaii me Pakistan sy ho Apki Sb videos Boht Achi hen ❤️🥰
He has covered about conditional operators (> , < , => , =< , != , ==)
I DON'T KNOW WHY MY REPLIT IS NOT START IT ALWAYS SHOW LOADING THEME,4 DAYS GONE I CAN'T ACCESS MY REPLIT😟😮💨
Use vs code
Make new account
Mine also not working
Great sir 🙏❤️
Nice lecture. 👍
Bhai awesome hai harry bhai. Mujhe ye doubt hai ki
Completed_course=int(input())
Print("I did all 100 days of coding successfully")
If Completed_course==100:
Print("Will people even take me in interviews for an IT job? What will be my level?")
elif Completed_course=>100:
Print("100 Days+ Some Projects from Harry bhai will make me ready for a job?")
else:
Print("Im sure that i know nothing,i'll get nothing lol")
Syntax error 😅
Condition written between ()
'=' should be '==' for checking condition .
Bro if need to be small or you did'nt gave any input
Okay, I edited your code to an extent and fixed it, please try this:
Completed_course=int(input("Type a number please"))
print("I did all 100 days of coding successfully")
if Completed_course == 100:
print("Will people even take me in interviews for an IT job? What will be my level?")
elif Completed_course < 100:
print("Less than 100")
elif Completed_course >=100:
print("100 Days+ Some Projects from Harry bhai will make me ready for a job?")
else:
print("Im sure that i know nothing,i'll get nothing lol")
First edit I made is that your "Prints" were capitalized, they are not suppose to be capitalized. In fact I can't name a function of Python that begins with a capital letter, remember it's "print", not "Print". Second problem was that you provided absolutely nothing in the input, you need to provide something in there, preferably a string, which I did for you. Thirdly, your "if" had some problem, I don't know why but it wasn't being interpreted as an if but rather just as meaningless text. Lastly I added another elif, because it makes sense to account for a number less than 100 as well. The code should work flawlessly now.
@@BilalUser Dude my motive was to ask a question and not to write a code okay? idk if i can benifit from this playlist of harry bhai idk if i can become a coder in life...
Love your Videos Sir..
you are the best coding teacher in india love you bro
It matters when you do regularly
I feel that
I got something day by day 😶🌫️♥️
Thanks sir
age = int(input("Enter your age:"))
"yes"
license = input("Do u have license:")
if (60 >= age >= 18) and (license == "yes") :
print("you can drive")
elif (license != "yes"):
print ("you dont have license you cant drive")
else:
print("you cant drive cz you are old")
Appreciate your work bhai
DAY #14 complete 👍🏼
Lesson completed,Harry bhai
love you harry bhai i am from Pakistan and i am learning from you from day 1 "you are the best teacher".
very helpful course learning python with #HarryBhai is fun
thank you brother for everything 😍
Amazing 😍
Sir, please is Python course ke baad 100days of code java programming ke liye bhi karna zarur...
By the way bhot acha course hai sir,
Love you a lot....
#day14 with full potential...
* this is amazing and interesting course of python*
Bro i love your voice yaarr.... Your deserve more subscribers.... ❤
Thanks Harry
Thanks sir for your kind consideration
Today I am realizing that the hard work that I spent earlier in learning C++ will be useful, apart from the syntax, all the concepts are covered.
also the hardwork i spent in c is very helpful here for python.........
Thank u Harry Bhai....
hisaab=int(input("enter the value of hisaab:"))
kharcha=int(input("enter the value of kharcha:"))
num=hisaab-kharcha
if(num
Master Class as always
please auto hide the taskbars when learning we need to use diff screen, or during lecture only capture the replit window , thanx we are with u till 101th day
Can anybody tell me that what's the difference between old python course videos of code with Harry and new python course videos?
Sir thanks for conducting this easy to understand and detailed python series. This program helped me in school tests too.
Sir pls tell what is the error in this program (nested statements)
num = int(input("Enter number : "))
if (num0) :
if (num= 10 and
Sir i have resolved the problem myself.
U r amazing Harry
thanks harry bhaiya
Harry bhai kia baat hai excellent teacher ho ap, love from Pakistan ❤️❤️❤️
Great ❤
World best intro harry vai 😍😍😍
Awesome video Harry bhai
#100 days of python challenges
Thanks sir.
bhaiya provide us practice set also
thanks for this course
Thanks Harry Bhaiya