Why showing This Error - spiral forward i 10 IndentationError expected an indented block

0 votes
import turtle
sc=turtle.Screen()
sc.setup(600,600)
spiral=turtle.Turtle()
spiral.speed(10)

sc.bgcolor("black")

col=("yellow","blue","white","green")
c=0

for i in range(50):
spiral.forward(i*10)
spiral.right(144)
spiral.color(col[c])
If c==3:
else:
c+=1
Sep 3, 2021 in Python by Pradip

edited 4 days ago 6 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP