#06 If Else with examples Part -2 | Python Tutorial Series 📚 in Tamil | EMC Academy
Вставка
- Опубліковано 6 лют 2025
- In this video, you'll learn how to use the if-else statement in Python with 10 real-world examples. The if-else statement is a powerful tool in Python that allows you to write code that makes decisions based on certain conditions. It's a fundamental concept in programming, and mastering it is essential for any Python developer.
By the end of this video, you'll have a solid understanding of how to use the if-else statement in Python and how it can be applied to real-world problems. So if you're new to Python or just want to brush up on your skills, this video is for you!
Don't forget to subscribe to our channel for more Python tutorials and hit the bell icon to get notified when we upload new videos. Let's get started!
Join our 184k+ Instagram Community
/ errormakesclever
I am searching this for 3months and now I have only 1 or 2months for my college to open I have started to watched your video from yesterday afternoon sir but you're teaching is awesome it made me cry emotionally that I can complete this program in one week because I am running a program on my own when you share a question and in a minute I have run a program successfully before you share the answer it madee cry i will never forget this moment and you sir.HATSOFF TO YOUR TEACHING👏👏.I am proud to be a student of your now❤.
Bro please upload the next as soon as possible coze your teaching was so excellent
Thank you. 😇 we will try to complete the series as soon as possible.
#Make a Mini Calculator
A=int(input("First Num:"))
B=int(input("Second Num:"))
i=input("What u Want Calculate:")
if i== "+" :
print(A+B)
elif i=="-":
print(A-B)
elif i=="/":
print(A/B)
elif i=="*":
print(A*B)
else:
print("Give the Value")
Really this thing help me a lot no words to explain this. I dont know single thing in Python but now following your programs before you typing I am doing. Thank you so much.
I'm learning now.. June 2024..
Excellent Bro.. TQ..
I'm also learning bro...🎉❤
Great job bro
After i have seen ur video
i am more interested to learn python
this is best video in youtube for the python beginners.. superb bro
Thalaiva vera level thalaiva. Yaruku puryutho ellayo 😅 basics la erunthu therinjukum enaku nala puryuthu thalaiva, enakum coding nalae puryuthu nu ngra bayam epo paka paka easy eruku thalaiva ellam unnala than en valkaiya erul la erunthu velichathuku kondu vanta thalaiva 😂 keep rocking apdi potutae erunga ennum videos 🎉
Bro semma ya explain pandringa awesome👏 na ella question nayu work panni patha nanave ennoda own question la create panni try panni patha correct ta vanthuchu ☺
Your teaching way is very nice bro 👏👏after seeing your video I am more interested to learn python
I'm glad you're enjoying the series!
Your viedioes are very useful ❤
movie = int(input("Share ur rating:"))
if movie 5 and movie
Conditions ku brackets podunga bro #like if(movie
So nice explanation bro . Useful video. Please don't drop this python series keep continue and complete full python language tutorial
score=int(input("SCORE : "))
if(score=35 and score=70 and score=35 is correct
Thanks bro awesome work, person who knows tamil can understand this 👍
Great job... Very nicely Explained
'''Get a input for Score percentage. Only if the percentage is greater than 70, get input for his name,department,location.
Then print you are eligible if not print you are not eligible'''
Percentage = int(input("Enter your percentage:"))
if Percentage > 70:
Name = str(input("Enter your name:"))
Department = str(input("Enter your Department:"))
Location = str(input("Enter your location:"))
print("You are eligible",Name)
else:
print("You are not eligible")
#even or odd
number=int(input("enter a number:"))
if(number%2==0):
print("the given number is even")
else:
print("the given number is odd")
Wow really beautiful explanation 👍
Super brother your video very clear thank you
Nice and clear explanation bro
Really really really really really awesome bro
Can u please explain about data science full course like this
Sql, machine learning,deep learning etc like this broooo.
#rank list program
print("enter your score obtained in computer subject:")
score=int(input())
if(score
75 ku epfi bro result varum check panna varala
@@russellchannel9590
score=int(input())
if (score
Bro, your teaching was so exciting & excellent👍💯👏👏..
Bro, neenga example questions potu solithara mari.. Is website iruintha solunga.... I'm interested to learn python...
Good Explanation❤❤❤
Excellent teaching 👌👌
Thank you
if(35
sema brol continue panitey irunga
12:00 : if all conditions can be taken by if so what's the point of if/elif or else?? Saving time nu solringe but andha alavuku peria difference onnum illaiye, answer mattum pothum le??
Bro mass neeinga...❤
Thank you bro ❤❤
Awesome teaching bro..Thank you so much.
Bro please don't drop this Python series .. keep rocking bro🎉🎉
This series la overall python basic covered Bro I will apply the got job bro
Your videos are Really appreciable, It will helpful me a lot , Thanks a lot bro.
great vdo
Thanks bro very useful and clear
Mini calculator:
a=int(input("Enter the value for A: "))
b=int(input("Enter the value for B: "))
print("Which operation do you need to do?")
c=input("add/sub/divide/multiply: ")
d=("add")
e=("sub")
f=("multiply")
g=("divide")
if(c==d):
print(a+b)
elif(c==e):
print(a-b)
elif(c==f):
print(a*b)
elif(c==g):
print(a/b)
else:
print("invalid operation")
Bro super ra teach pandriga❤
Thank you very much bro
mark=int(input("score:"))
if(mark
Thank you brother
Welcome
a=int(input("A:"))
b=int(input("B:"))
Operation=int("add/sub/mul/div")
If(operation=="add):
Print(a+b)
Elif(operation=="sub"):
Print(a-b)
Elif(operation=="mul"):
Print(a*b)
Elif(operation=="div"):
Print(a/b)
Else:
Print("invalid operation ")
If elif else condition ❤
print("CALCULATOR")
print("Lets do a maths calc using this pyton calc")
a=int(input("Enter the first number A: "))
b=int(input("Enter the second Number B: "))
print(" What operation do you like to do?")
c=input(" add/ sub / mul / div : ")
d="add"
e="sub"
f="mul"
g="div"
if(c==d):
print(a+b)
elif(c==e):
if(a>b):
print(a-b)
else:
print(b-a)
elif(c==f):
print(a*b)
elif(c==g):
if(a>b):
print(a/b)
else:
print(b/a)
else:
print("invalid operation")
Thank you ❤ anna
Thank you ❤❤❤
Mini calculator program:
number1 = int(input("Enter the number1:"))
number2 = int(input("Enter the number2:"))
operation =input("Addition/Subtraction/Multiplication/Division:")
if operation == "Addition":
print("The addition of two number is:",number1 + number2)
elif operation == "Subtraction":
print("The subtraction of two number is:",number1 - number2)
elif operation == "Multiplication":
print("The multiplication of two number is:",number1 * number2)
elif operation == "Division":
print("The division of two number is:",number1 / number2)
else:
print("Invalid operation")
I have one doubt
A=int(input(score:))
if(a35 and a
Hii bro...
Now a days i follow and learning python in the score out of 100 example prg using if -elif-else condition i try this condition the prg
Prg:
mark=int(input())
if(mark
Hello, Yes this is correct. Your first condition is if the mark is less than 35 it will print "poor student" and it will check the second condition if the first condition fails, if the mark is 35 and less than 70 it will print "Average student" and if the second condition also fails it will go to the 3rd condition, if the mark is 70 and above it will print "Good student".
@@PazhagalamVaanga Tq for ur explanation bro..... 😊
Anna I want to get certificate after learning python here.... what should I do?? pls do guide me...
score = int(input())
if(score35 and score
Thanks bro
29:25 bro how to repeat process.😊
bro neenga 5th question la onnu add panna marandhutinga
2nd elif command irukula athula neenga 70 and
Hi bro. In program 5, if we give input as 35,70 means -- output is Invalid score, please explain.
#percentage eligible or not eligible
score=int(input("Enter score percentage:"))
if(score>=70):
name=str(input("enter your name:"))
department=str(input("enter your department:"))
native=str(input("enter your native:"))
reg=int(input("enter your reg no:"))
print("THE DETAILS YOU GIVEN CHECK IT OUT!")
print("name :",name)
print("department :",department)
print("native :",native)
print("reg no :",reg)
print("congrats!!!!!")
print("*******you are eligible for the gate2023 exam!*******")
else:
print("you are not eligible for the gate2023 exam!")
36:04 when we giving our age is number we can't use the int function please tell anyone
score=int(input("score:"))
if(score=35 and score
Bro indha if, elif la neenga actual a check panrapa < 35 poteenga < 70 poteenga > 70 poteenga.. ana 35 podala, 70 podala.. neenga 35 & 70 potrundha program la output vera mari vandrukum bro.
numpy and pandas concept poduga bro
Bro! Why we are using comparison operator (==) in 6th program.if you replay mean it will helpful for me.
Bro Question 5 la input Score 35,70,100 Enter panna Else condition print Aguthu,
Please consider Question 5
I Thing this is the correct Code for Question 5
score = int(input("Enter Score : "))
if (score < 30):
print("Poor Student")
elif(score >= 30 and score < 70):
print("Average Student")
elif(score >= 70 and score
n1=int(input("Enter The First Number:"))
n2=int(input("Enter The Second Number:"))
ans=int
operation=input("Add(+) || Sub(-) || Mul(*) || Div(/):")
if(operation=="Add" or "add"):
ans=n1+n2
print(ans)
elif(operation=="Sub" or "sub"):
ans=n1-n2
print(ans)
elif(operation=="Mul" or "mul"):
ans=n1*n2
print(ans)
elif(operation=="Div" or "div"):
ans=n1/n2
print(ans)
else:
print("Invalid Operation")
sir,when we give the score is 70 then its shows an invalid option,that why we need to be use score
Correct
Bro student example 35,70,100 kutuththa inavaild number varuthu bro ana 35 kututha poor, 70 kututha avarage and 100 good student thana bro varanum reply pannuga bro plz plz
a = int(input('Enter your score: '))
if a < 35:
print('Poor student')
elif 35
bro can u upload pandas concept
number=int(input())
if (number%2==0):
print(number,":is even")
else:
print(number,":is odd")
Bro ("double Codation entha edathula use pannaum")
bro when you enter a input 100 its result is invalid score (qn:5)
Bro i have a doubt in Q5 rather going for a 4th else can't we include a condition like "out of 100" in the first line
Software testing vedios pannunga bro
Bro please boto3 pathi explain pannunga
score=int(input("Enter your score:"))
if (score35 and score100):
print("invalid score")
else:
print("Good student")
For 5th problem this above program is correct or wrong
Got output:
Enter your score:101
invalid score
>>>
Enter your score:100
Good student
Enter your score:200
invalid score
Thank you Bro 🫡
Welcome
bro neeing andha operation ya podromu nu solla va illa ya kandipa adhu podanuma bro?? bro opertionku badhil c illa adha madhari yadhachu podlama bro??
Bro please make JavaScript videos
Bro i have a doubt in 5th program...
elif(score>70 and score
Output : invalid
But in question score>70 is "Good student"
i enter 100 as in the input i am getting invalided score!!
a=int(input("Enter the Score:"))
if(a35 and a70 and a
so i use
Bro suppose naa mark 35 nu input la enter panna good studentnu varutu bro? Eppudi??
23:56 ipo input la score = 100 nu pota good score nu kaatuma illa invalid score nu kaatuma??
Can someone tell about this👆??
Hii if else eh ivlo neram iruku inu naraya concept iruke python mudika 2 months aaiduma bro
Slow ha clear ha learn panuga
1 monthkulayae mudinjrum concepts ellam. Aana neenga inoru 1 or 2 month practice pana dhan nalla code pana mudium.
@@ErrorMakesClever ok bro thank you
Bro nan vanthu 2014 passout 10 years lift installation experiences... Ennudaiya work field work.... So evalu days work panni ippom thn enakku 35K varuthu....
Nan starting la thappana careers choice Pannittan....
Ippom ungha video python padichukittu varan..
Nan ippom try pannuna job kidakkuma?
Ini mel nan IT field kku vara mudiuma?
Bro int() syntax use pannatha add and sub use panna muddiyuma bro
Bro time 21min 35 input kudutha output good student aa varudhu.😊
Please explain me bro
@@Mr.Tech2016-bi7lz intha maathiri code write pannunga 👍🏻
score=int(input("Enter Your Score:"))
if(score=35 and score=70 and score
no bro when we give 100 also its come invalid number
Bro when score is 35 for elif concept, it says invalid session, I don't know why?
Bro can you share the word doc please
bro please explain what is elif
perfect
Bro .... Suppose we put 100 or 35 or 70 then what will be the output
Yes bro I think we put less than are equal to😅
We have to use less than or equal to operators. if not it will consider only less than 35 and less than 70 or 100.
Bro idhula neega elif(score>70>100):
Print("good student")
Bro sinna mistake idhu correct answer
Bro java serious podunga bro
#mini calculator
Bro Naa b la value point la kuduthe invalid nu varuthu
Point numbers ku operation panna mudiyatha bro
bro pls save panna file yepudi open pannanumnu kattunga yennaku open panna save pannadhu vara maatikuthu bro pls
kaatunga
Score 35 kudutha enna varum and 70 kudutha enna varum. Enaku output varala.
Nenga sona aprm try pani pathan I used (=)
if(score less=35):
Print(poor student)
If(score greater35 and less70):
Print(average student)
If(score greater=70):
Print(good student)
Try pani pathutu solunga...
35 input potta (poor) nu varuthu then 70 potta (good student) nu varuthu am I right 😺😅
Error Makes claver ❤
Bro less than or equal epdi kodukurathu bcaz if I give input for 35,75,100 output ethuvumey varala athan
a = int(input('Enter your score: '))
if a < 35:
print('Poor student')
elif 35
print vs result comparison
Bro question no. 6 : score : 35 enter panna nothing will come, we need to change the code teach that.
I hope you will see this msg, Thank you.
Neenga ena sola vareenganu puriala bro.
Bro next enna concept exaplin panna porenga after if else
If else la third part matum nalaiku upload panvom bro. Adhuku aduthu loop start panirvom.
35 and 70 and 100 print statement does not work bro😢