Skip to content
TechDecode Tutorials

TechDecode Tutorials

Short and Simple Tech Tutorials

  • C++
    • C++ Programs
    • C++ Tutorials
    • C++ Course
    • C Programs
    • C Tutorials
  • Java
    • Java Notes
    • Programs
    • Tutorials
    • Java Courses
  • Python
    • Python Notes
    • Programs
    • Tutorials
    • Python Course
  • c#
    • C# Courses
  • Web Development
    • HTML
    • CSS
    • Javascript
      • Javascript Program
      • JavaScript Course
    • PHP
  • Data Science
    • R Programming
    • Data Science Courses
  • Application
  • Download
  • Tech
    • Cyber Security
    • Cyber Security Courses
Python Notes Python Programs 

How to add two numbers using python code

July 1, 2022November 24, 2022 Yogendra Singh

In this tutorial, we are going to show How to Add two numbers using python. We have added the video tutorial and the source code of the program.

Video Tutorial: Add two numbers using python code

Source Code

# Python program to add two numbers

a = input('Enter value of a: ')
b = input('Enter value of b: ')

sum =  float(a) + float(b) 

print('\nSum of',a,'and',b,'is',sum)

Output

Also Read: Python program to create bmi calculator

Join Now : Learn Python Programming Masterclass

  • ← How Unity webgl games are changing the gaming industry
  • How to generate random numbers using python code →

You May Also Like

Insert A Node At Front In Linked List using Python

October 13, 2021October 12, 2021 Ethix

How to Draw Circle patterns using Python

March 8, 2022March 8, 2022 Nihal Prasad

Python – Dictionary

May 27, 2022 Nihal Prasad

Python

  • Python - Introduction
  • Python - Syntax
  • Python - Comments
  • Python - Variables
  • Python - Data Types
  • Python - Numbers
  • Python - Type Casting
  • Python - Operators
  • Python - Booleans
  • Python - Strings
  • Python - Lists
  • Python - Tuples
  • Python - Sets
  • Python - Dictionary
  • Python - If Else
  • Python - While Loop
  • Python - For Loop
  • Python - Continue Statement
  • Python - Break Statement
  • Python - Functions
  • Python - Lamda Function
  • Python - Scope of Variables
  • Python - Modules
  • Python - Iterators

About Us

logo
Our mission is to deliver technical tutorials with clear, crisp, and to-the-point content on a wide range of subjects without any preconditions and impediments.

Company

  • About Us
  • Internship
  • Contact Us
  • Privacy Policy
  • Copyright Policy

Learn

  • C++
  • Java
  • Python
  • R Programming
  • Web Development

Powered By

Accounting Software Powered by Refrens

Copyright © 2025 TechDecode Tutorials. All rights reserved.
Theme: ColorMag by ThemeGrill. Powered by WordPress.