xxxxxxxxxx
#Area and circumference of a circle.
r=float(input('Enter the radius of the circle :'))
pi=22/7
area=pi*r**2
circumference=2*pi*r
print('The area of the circle is',area)
print('The circumference of the circle is',circumference)
_______________________________________________________________________________
xxxxxxxxxx
import turtle
# Create a turtle object
t = turtle.Turtle()
# Draw a circle with radius 100 pixels
t.circle(100)
# Keep the window open until it is closed manually
turtle.done()