Saturday, November 13, 2021

Draw circle in python turtle

 

Circle
Circle

Code:

# Draw circle in turtle
from turtle import *

radius = int(input("Enter the radius of the Circle: "))

# Drawing circle
circle(radius)

# It will keep output to wait for the click,
# Otherwise output will be disappear.
exitonclick()

Input:

Enter the radius of the Circle: 80

Output:

Circle Output

No comments:

Post a Comment

Draw bahamas flag in python turtle

  Bahamas Flag