Python Program to Find Sum and Average of All Numbers entered by the User

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

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

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

    Why we are converting the user data into lower case ie. If condition

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

    Late but great and to the point here. The only flaw I see is that with your if statement for your choice variable. The loop will continue with any answer other than 'n'. So I can put in value there, and it won't result in an error. Maybe implement an exception?

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

      yes. that can be done :)

  • @ksakina4421
    @ksakina4421 3 ปีที่แล้ว

    how to find the sum of series for integer value of n

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

    When v run the program in the end of program i dont get numbers s value, it directly exit.
    Plz help

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

    How the code be like if we want to limit the user to input numbers not more than 100 times?

    • @ExampleProgram
      @ExampleProgram  3 ปีที่แล้ว

      use a variable to count the number of input.
      with every input increase it and check whether you have crossed 100 entries. if so then stop taking input.

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

    Brother I need your help,please reply so that I can message you on Facebook 🎆

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

      you can post your query here :)

    • @thedropoutentertainment6559
      @thedropoutentertainment6559 3 ปีที่แล้ว

      @@ExampleProgram drive.google.com/file/d/1bCVs-j6ueeKeoRGvPcauiawDFWTArm60/view?usp=drivesdk

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

    very good ,you explain very good!

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

    thank you sir but i have one problem the compiler does not show errors but the program does not want to calculate the average something about float or something

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

    Thanks sir

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

    Why are Indians' classes always better?

  • @ksakina4421
    @ksakina4421 3 ปีที่แล้ว

    if the input is 2 ?

    • @ExampleProgram
      @ExampleProgram  3 ปีที่แล้ว

      sum will be 2
      average will be 2

    • @ksakina4421
      @ksakina4421 3 ปีที่แล้ว

      @@ExampleProgram
      here 2 will be input and
      Output
      24
      2+22

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

    you can't explain well