#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

КОМЕНТАРІ • 143

  • @kalaiselvisiva1388
    @kalaiselvisiva1388 6 місяців тому +31

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

  • @MayuriVinayagam
    @MayuriVinayagam Рік тому +57

    Bro please upload the next as soon as possible coze your teaching was so excellent

    • @ErrorMakesClever
      @ErrorMakesClever  Рік тому +35

      Thank you. 😇 we will try to complete the series as soon as possible.

  • @Cyberverse-01
    @Cyberverse-01 Рік тому +26

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

  • @rajeshkumar-iz7xp
    @rajeshkumar-iz7xp Рік тому +2

    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.

  • @sudhananthansachuthanantha5336
    @sudhananthansachuthanantha5336 7 місяців тому +12

    I'm learning now.. June 2024..
    Excellent Bro.. TQ..

    • @SzoboX
      @SzoboX 7 місяців тому +2

      I'm also learning bro...🎉❤

  • @logesh4581
    @logesh4581 Рік тому +8

    Great job bro
    After i have seen ur video
    i am more interested to learn python

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

    this is best video in youtube for the python beginners.. superb bro

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

    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 🎉

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

    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 ☺

  • @JayaP-x5k
    @JayaP-x5k 9 днів тому

    Your teaching way is very nice bro 👏👏after seeing your video I am more interested to learn python

  • @Mr.Tech2016-bi7lz
    @Mr.Tech2016-bi7lz 10 місяців тому

    Your viedioes are very useful ❤

  • @ms.awesome0721
    @ms.awesome0721 9 місяців тому +8

    movie = int(input("Share ur rating:"))
    if movie 5 and movie

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

      Conditions ku brackets podunga bro #like if(movie

  • @SangeethaSangeetha-lj4ft
    @SangeethaSangeetha-lj4ft Рік тому +3

    So nice explanation bro . Useful video. Please don't drop this python series keep continue and complete full python language tutorial

  • @vinothgs1661
    @vinothgs1661 10 місяців тому +2

    score=int(input("SCORE : "))
    if(score=35 and score=70 and score=35 is correct

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

    Thanks bro awesome work, person who knows tamil can understand this 👍

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

    Great job... Very nicely Explained

  • @R.A.G.U.L
    @R.A.G.U.L Рік тому +3

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

  • @computrons2023
    @computrons2023 Рік тому +4

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

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

    Wow really beautiful explanation 👍

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

    Super brother your video very clear thank you

  • @snegaA-z9l
    @snegaA-z9l 11 місяців тому

    Nice and clear explanation bro

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

    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.

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

    #rank list program
    print("enter your score obtained in computer subject:")
    score=int(input())
    if(score

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

      75 ku epfi bro result varum check panna varala

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

      @@russellchannel9590
      score=int(input())
      if (score

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

    Bro, your teaching was so exciting & excellent👍💯👏👏..
    Bro, neenga example questions potu solithara mari.. Is website iruintha solunga.... I'm interested to learn python...

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

    Good Explanation❤❤❤

  • @sarvesa.t6463
    @sarvesa.t6463 3 місяці тому

    Excellent teaching 👌👌

  • @smileyyogy3377
    @smileyyogy3377 Рік тому +7

    if(35

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

    sema brol continue panitey irunga

  • @subashsmiles5447
    @subashsmiles5447 9 місяців тому +2

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

  • @xavierandrew5967
    @xavierandrew5967 11 місяців тому

    Bro mass neeinga...❤

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

    Thank you bro ❤❤

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

    Awesome teaching bro..Thank you so much.

  • @naveenkumarr8462
    @naveenkumarr8462 Рік тому +12

    Bro please don't drop this Python series .. keep rocking bro🎉🎉

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

      This series la overall python basic covered Bro I will apply the got job bro

  • @ramkumar-df5fw
    @ramkumar-df5fw Рік тому

    Your videos are Really appreciable, It will helpful me a lot , Thanks a lot bro.

  • @Deadpoolxozo
    @Deadpoolxozo 8 місяців тому +1

    great vdo

  • @VenkateshM-q2h
    @VenkateshM-q2h Рік тому

    Thanks bro very useful and clear

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

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

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

    Bro super ra teach pandriga❤

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

    Thank you very much bro

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

    mark=int(input("score:"))
    if(mark

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

    Thank you brother

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

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

  • @Soundhar_jack
    @Soundhar_jack 7 місяців тому

    If elif else condition ❤

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

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

  • @DineshDinesh-pn5ij
    @DineshDinesh-pn5ij Рік тому

    Thank you ❤ anna

  • @rocks.d_jeeva
    @rocks.d_jeeva Рік тому

    Thank you ❤❤❤

  • @R.A.G.U.L
    @R.A.G.U.L Рік тому

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

  • @dhamodharan9185
    @dhamodharan9185 5 місяців тому

    I have one doubt
    A=int(input(score:))
    if(a35 and a

  • @velu__creation
    @velu__creation 6 місяців тому

    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

    • @PazhagalamVaanga
      @PazhagalamVaanga 5 місяців тому

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

    • @velu__creation
      @velu__creation 5 місяців тому +1

      @@PazhagalamVaanga Tq for ur explanation bro..... 😊

  • @varshass9136
    @varshass9136 5 місяців тому +1

    Anna I want to get certificate after learning python here.... what should I do?? pls do guide me...

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

    score = int(input())
    if(score35 and score

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

    Thanks bro

  • @Mr.Tech2016-bi7lz
    @Mr.Tech2016-bi7lz 10 місяців тому

    29:25 bro how to repeat process.😊

  • @meowmeow-yg9jl
    @meowmeow-yg9jl 8 місяців тому

    bro neenga 5th question la onnu add panna marandhutinga
    2nd elif command irukula athula neenga 70 and

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

    Hi bro. In program 5, if we give input as 35,70 means -- output is Invalid score, please explain.

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

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

  • @NEERAJRATHI-x7y
    @NEERAJRATHI-x7y Місяць тому

    36:04 when we giving our age is number we can't use the int function please tell anyone

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

    score=int(input("score:"))
    if(score=35 and score

  • @varoon04
    @varoon04 11 місяців тому

    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.

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

    numpy and pandas concept poduga bro

  • @Nobody00261
    @Nobody00261 7 місяців тому

    Bro! Why we are using comparison operator (==) in 6th program.if you replay mean it will helpful for me.

  • @ananthababu7267
    @ananthababu7267 11 місяців тому

    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

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

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

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

    sir,when we give the score is 70 then its shows an invalid option,that why we need to be use score

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

    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

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

      a = int(input('Enter your score: '))
      if a < 35:
      print('Poor student')
      elif 35

  • @Saransriraman
    @Saransriraman 6 місяців тому

    bro can u upload pandas concept

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

    number=int(input())
    if (number%2==0):
    print(number,":is even")
    else:
    print(number,":is odd")

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

    Bro ("double Codation entha edathula use pannaum")

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

    bro when you enter a input 100 its result is invalid score (qn:5)

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

    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

  • @sss-oi5po
    @sss-oi5po Рік тому

    Software testing vedios pannunga bro

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

    Bro please boto3 pathi explain pannunga

  • @jkrtamil
    @jkrtamil 5 місяців тому

    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

  • @PriskillaJohn-wx5hg
    @PriskillaJohn-wx5hg 3 місяці тому

    Thank you Bro 🫡

  • @350_pilot6
    @350_pilot6 Рік тому

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

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

    Bro please make JavaScript videos

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

    Bro i have a doubt in 5th program...
    elif(score>70 and score

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

      Output : invalid
      But in question score>70 is "Good student"

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

    i enter 100 as in the input i am getting invalided score!!
    a=int(input("Enter the Score:"))
    if(a35 and a70 and a

  • @JasonMeshach-ry5pn
    @JasonMeshach-ry5pn 10 місяців тому

    Bro suppose naa mark 35 nu input la enter panna good studentnu varutu bro? Eppudi??

  • @shreesai-fe1kd
    @shreesai-fe1kd 16 днів тому

    23:56 ipo input la score = 100 nu pota good score nu kaatuma illa invalid score nu kaatuma??

  • @nandhiniedu-wh6kf
    @nandhiniedu-wh6kf Рік тому +3

    Hii if else eh ivlo neram iruku inu naraya concept iruke python mudika 2 months aaiduma bro

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

      Slow ha clear ha learn panuga

    • @ErrorMakesClever
      @ErrorMakesClever  Рік тому +4

      1 monthkulayae mudinjrum concepts ellam. Aana neenga inoru 1 or 2 month practice pana dhan nalla code pana mudium.

    • @nandhiniedu-wh6kf
      @nandhiniedu-wh6kf Рік тому +2

      @@ErrorMakesClever ok bro thank you

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

    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?

  • @Vignesh.M2002
    @Vignesh.M2002 Рік тому

    Bro int() syntax use pannatha add and sub use panna muddiyuma bro

  • @Mr.Tech2016-bi7lz
    @Mr.Tech2016-bi7lz 10 місяців тому

    Bro time 21min 35 input kudutha output good student aa varudhu.😊

    • @Mr.Tech2016-bi7lz
      @Mr.Tech2016-bi7lz 10 місяців тому

      Please explain me bro

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

      @@Mr.Tech2016-bi7lz intha maathiri code write pannunga 👍🏻
      score=int(input("Enter Your Score:"))
      if(score=35 and score=70 and score

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

    no bro when we give 100 also its come invalid number

  • @Madd-q1f
    @Madd-q1f Рік тому

    Bro when score is 35 for elif concept, it says invalid session, I don't know why?

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

    Bro can you share the word doc please

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

    bro please explain what is elif

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

    perfect

  • @kowshickraja8690
    @kowshickraja8690 6 місяців тому

    Bro .... Suppose we put 100 or 35 or 70 then what will be the output

    • @BharathbalajiA
      @BharathbalajiA 5 місяців тому +1

      Yes bro I think we put less than are equal to😅

    • @PazhagalamVaanga
      @PazhagalamVaanga 5 місяців тому

      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.

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

    Bro idhula neega elif(score>70>100):
    Print("good student")
    Bro sinna mistake idhu correct answer

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

    Bro java serious podunga bro

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

    #mini calculator
    Bro Naa b la value point la kuduthe invalid nu varuthu
    Point numbers ku operation panna mudiyatha bro

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

    bro pls save panna file yepudi open pannanumnu kattunga yennaku open panna save pannadhu vara maatikuthu bro pls
    kaatunga

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

    Score 35 kudutha enna varum and 70 kudutha enna varum. Enaku output varala.

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

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

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

      35 input potta (poor) nu varuthu then 70 potta (good student) nu varuthu am I right 😺😅

    • @Jonesmusic07
      @Jonesmusic07 7 місяців тому

      Error Makes claver ❤

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

    Bro less than or equal epdi kodukurathu bcaz if I give input for 35,75,100 output ethuvumey varala athan

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

      a = int(input('Enter your score: '))
      if a < 35:
      print('Poor student')
      elif 35

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

    print vs result comparison

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

    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.

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

    Bro next enna concept exaplin panna porenga after if else

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

      If else la third part matum nalaiku upload panvom bro. Adhuku aduthu loop start panirvom.

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

    35 and 70 and 100 print statement does not work bro😢