Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to get circumference from radius

import math
input=input(f'The radius of the circle is : ')
radius = int(input)
diameter = radius * 2 
area = math.pi * math.pow(radius,2) # radius**2
circumference = math.pi*(radius*2)
print(f'The radius of the circle is {radius:.4f}.')
print(f'The diameter of the circle is {diameter:.4f}.')
print(f'The circumference of the circle is {circumference:.4f}.')
print(f'The area of the circle is {area:.4f}sq.')
Comment

PREVIOUS NEXT
Code Example
Python :: taking array input in python 
Python ::  
:: all select first value in column list pandas 
::  
Python ::  
::  
::  
::  
::  
::  
::  
Python ::  
Python ::  
Python ::  
Python :: dot operator in python 
Python ::  
Python :: merge lists 
::  
::  
Python ::  
Python :: python parcourir ligne 
Python :: python if null 
Python ::  
Python ::  
:: envScriptsactivate.ps1 : File 
:: z score formula in pandas 
Python :: blender show python version 
::  
Python :: higlight words in python 
Python ::  
ADD CONTENT
Topic
Content
Source link
Name
5+6 =