Python Example Program to find the Largest among 3 numbers entered by the User

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024
  • in this video you will learn to write an example program to find the largest among 3 numbers entered by the user using if else conditional statements in Python programming language.
    our Social Media Pages
    / exampleprogram
    / exampleprogram
    / examplecomputerprogram
    Our Website
    www.ExamplePro...
    #PythonProgramming #ExampleProgram

ความคิดเห็น • 52

  • @OchiengEdwin-tj7ky
    @OchiengEdwin-tj7ky 5 หลายเดือนก่อน +6

    I'm seeing syntax error after following the entire procedure

    • @ExampleProgram
      @ExampleProgram  5 หลายเดือนก่อน

      Please post error details

  • @yyy30
    @yyy30 2 หลายเดือนก่อน +3

    Else if i think we need to right elif

  • @l00v3r-user13
    @l00v3r-user13 หลายเดือนก่อน +1

    I really understood this so quickly, Thank you so much for the help

    • @ExampleProgram
      @ExampleProgram  หลายเดือนก่อน

      Glad my video helped you

  • @Rimm10
    @Rimm10 ปีที่แล้ว +3

    Sir it is showing syntaxe error for the last print statement. Name 'largest' is not defined it seems.
    Plz help

  • @YT-mm1tn
    @YT-mm1tn 2 ปีที่แล้ว +6

    Wow! This guy is the best, he explained it so well!!! Amazing! 😮

  • @louisdadulla8198
    @louisdadulla8198 4 ปีที่แล้ว +4

    Sir what if you input a negative number such as n1=77 n2=88 n3= -98 what would be the result. Thank you

    • @phoenixtyrongaming1213
      @phoenixtyrongaming1213 3 ปีที่แล้ว +1

      Bro it will display 88 cuz python already understands negative integers

    • @rakshana9865
      @rakshana9865 2 ปีที่แล้ว +1

      N2 is the largest number

  • @gobindachandrapradhan6654
    @gobindachandrapradhan6654 2 ปีที่แล้ว +3

    use >= instead of > otherwise if u use 2 same numbers like(10,10,5) then program will fail.

    • @yaseenaljuboori3727
      @yaseenaljuboori3727 ปีที่แล้ว

      I tried it and i got duplicated output any idea how to make it only one not 2 that have the same answer?

    • @kasturiburagohain4349
      @kasturiburagohain4349 7 หลายเดือนก่อน

      Lol

  • @siddharthapaul10
    @siddharthapaul10 หลายเดือนก่อน +1

    Which version of python are you using?

    • @ExampleProgram
      @ExampleProgram  หลายเดือนก่อน

      just get the latest version.
      i always use latest version

  • @IThinkItsMe
    @IThinkItsMe 5 หลายเดือนก่อน +1

    Thankyou so much. Sending all my best wishes for teaching me something cool. Hare Krishna.

    • @ExampleProgram
      @ExampleProgram  5 หลายเดือนก่อน

      Glad my video helped you
      Hare Krishna :)

  • @jorgejaredserrano7917
    @jorgejaredserrano7917 ปีที่แล้ว +1

    How do you enter the number?? I put “Enter number” but it never asks me to put a number

  • @Voloxim
    @Voloxim ปีที่แล้ว +1

    Hello there, what if I want to find the two largest numbers out of the 3 provided? I'll look forward to anyone reading this willing to help me out.
    Thank you!

  • @BR44MOTORRAD
    @BR44MOTORRAD 3 ปีที่แล้ว +2

    Thanks sir for clear my dout

  • @petrosukums2510
    @petrosukums2510 ปีที่แล้ว +2

    You are good teacher

  • @insanityb3ast258
    @insanityb3ast258 3 ปีที่แล้ว +2

    I had h.w for this and to check which is even or odd
    Thanks for the help
    Will tell all my friends

  • @saravanansaravanan4478
    @saravanansaravanan4478 8 หลายเดือนก่อน +1

    Tq ❤

  • @amazonshoppingstore8888
    @amazonshoppingstore8888 2 ปีที่แล้ว

    Sir plz help me by Making this program using conditional operator

  • @petrosukums2510
    @petrosukums2510 ปีที่แล้ว +1

    How can I controls this well

  • @dasrathkota7074
    @dasrathkota7074 2 ปีที่แล้ว +1

    This was very helpful for my fit portfolio

  • @MukeshKumar-wm5yx
    @MukeshKumar-wm5yx 9 หลายเดือนก่อน +1

    Thank you sir

  • @deepakabram
    @deepakabram 3 ปีที่แล้ว +1

    thank you

  • @ifeanyichukwuoviekofiigbuk5363
    @ifeanyichukwuoviekofiigbuk5363 2 ปีที่แล้ว

    if n1 > n2 and n1 > n3 and n1 > n4:
    largest = n1
    elif n2 > n3:
    largest = n2
    elif n3 > n4:
    largest = n3
    else:
    largest = n4
    print("Largest among {}, {}, {} and {} is {}".format(n1, n2, n3, n4, largest))
    this also worked even though I didn't compare the second statement with n1 and n4........can you explain further sir

  • @NEHAKUMARI-dm2qn
    @NEHAKUMARI-dm2qn 2 ปีที่แล้ว

    If l do this program to find smallest than I just have change largest to smallest right

  • @starstudio143
    @starstudio143 2 ปีที่แล้ว +1

    Thanks a lot.. 🥰

  • @amnahansari4083
    @amnahansari4083 2 ปีที่แล้ว

    thanks i guess

  • @anchal7341
    @anchal7341 2 ปีที่แล้ว +1

    Tq you 🙏😊

  • @siddheshdhanawade3920
    @siddheshdhanawade3920 4 ปีที่แล้ว +1

    Great

  • @n.karthik6615
    @n.karthik6615 3 ปีที่แล้ว

    That's easy to understand

  • @RameshPal-cd4cs
    @RameshPal-cd4cs 2 หลายเดือนก่อน +1

    Showing KeyError: ' '
    For the print code.
    Pl help.

    • @yashthapa118
      @yashthapa118 2 หลายเดือนก่อน +2

      U should put double quotes on the before and after the statement inside the print statement to print it . Not a single quote.

    • @RameshPal-cd4cs
      @RameshPal-cd4cs 2 หลายเดือนก่อน +1

      Yes it is done . Thank you. Many thanks.