Python Program to Add Two Numbers

Here you will get python program to add two numbers.

The program will first ask user to enter two numbers, calculate their sum and finally print it.

input() is an inbuilt function which is used to take input from user.

Python Program to Add Two Numbers


enter first number:5
enter second number:7
sum: 12

13 thoughts on “Python Program to Add Two Numbers

  1. Arun

    Hiii am Arun student of Computer science means programmer plz help me am now biginner programmer but I take intereste in Programming world .But I don’t have any Senior and Coach .
    Can you help me

    1. Riyaz

      Sure if you are going with programming you need to start from somewhere and i believe since you are cse students so you must be knowing oop so better is to start with java core and after that you will get an idea how and where to go. Perhaps with python ruby big data java script or anything you like

    2. Frozan

      I am also a computer science student.
      Help me learn Python?
      Thank you

    3. Abhishek

      You should learn Python first ,it is very easy to learn. You can learn it from youtube

    4. nayaz

      If you want be a programmer don’t depend on anyone. Do practice of your own self study is the main thing for programmers


  2. Jordan

    Thanks so much, Neeraj! I really appreciate you helping out us fellow programmers with our coding, even though you don’t have to! 🙂

  3. Trixie Quare

    We need
    Nested For Loops
    Nested While Loop
    Function (1)
    Nested if
    If else if

    Just an examples with minimun 15 lines of codes

  4. David

    Thanks for the assist. It helped me in my Codecademy lessons

  5. Vatsal Vyas

    Thank you developer of this site. This helped me a lot. Now I don’t have any problem in programming anymore. 👍🏻👍🏻👍🏻


Leave a Reply

Your email address will not be published. Required fields are marked *