Advertisements

Aatul Palandurkar

Addition with Python

Posted on: August 25, 2019

Objectives:

  • How to perform addition in Python?
  • How to do addition in Python?
  • How to add two numbers in Python?
  • How to add numbers in Python?

 

Code:

x=5
y=3
z = x + y
print(x)
print(y)
print(z)

Please refer above code to add numbers in Python and print their values.

 

Steps to Run the above code:

  • Navigate to the folder/directory where you have saved your python code or file.
  • Here I have considered that python file is saved on “c:\>” and the File name is “Addition.py
  • Just type the following command now to execute the Python program: c:\> python Addition.py

 

Download code:

  • Navigate to GitHub repository and download the code from here: Addition.py

 

We conduct Python Training and Workshop for Corporates and College Students, if interested, please write to us on kloudsancyber@gmail.com

 

Aatul Palandurkar
Life Coach, International Trainer, and Author

https://www.facebook.com/aatulpalandurkar
https://www.instagram.com/aatulpalandurkar/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Advertisements

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 13,212 other followers

Tweets

YouTube

Archives

Advertisements
%d bloggers like this: