Aatul Palandurkar

Posts Tagged ‘python

Objectives:

  • How to find the area of a circle in Python?
  • How to find the circumference of a circle in Python?
  • How to find the area and circumference of a circle in Python?

Python Code:


print("Enter radius of circle")
rad = input()
r=float(rad)
area = 3.14 * r * r
circumference = 2 * 3.14 * r
print(area)
print(round(circumference, 2))

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 “Circle.py
  • Just type the following command now to execute the Python program: c:\> python Circle.py

 

Download code:

  • Navigate to GitHub repository and download the code from here: Circle.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/

Attend Free Demo Sessions on Digital Marketing and Python at ETES, Nagpur on 1st and 2nd July 2019 @ 5pm
For registration, call on 8788737361

#digitalmarketing #digitalmarketingtraining #digitalmarketingnagpur #digitalmarketingtrainingnagpur #digitalmarketingtrainer #digitalmarketingtrainernagpur #digitalmarketingtrainerindia #digitalmarketinginstitute #python #pythontraining #pythonprogramming #pythontraininginstitute #pythontrainingnagpur #pythoninstitutes #pythoninstitute #pythoninstitutenagpur #pythonacademynagpur #pythontrainer #machinelearning #machinelearningtraining #machinelearningtrainer #machinelearningtrainingnagpur #machinelearningtrainingcourse #socialmediamarketing #socialmediamarketingtraining #socialmediamarketingagency #socialmediamarketingtrainer #socialmediamarketingnagpur


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

Join 13,230 other followers

Tweets

YouTube

Archives

%d bloggers like this: