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

Output

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

12 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

    Reply
    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

      Reply
    2. Frozan

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

      Reply
    3. Abhishek

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

      Reply
    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

      Rewards
      Nayaz

      Reply
  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! 🙂

    Reply
  3. Trixie Quare

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

    Just an examples with minimun 15 lines of codes

    Reply
  4. David

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

    Reply

Leave a Reply

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