By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,041 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

what does for i in range(50): mean

P: 1
i saw this code online and i want to know what that third line is for....

import turtle

star = turtle.Turtle()

for i in range(50):
star.forward(50)
star.right(144)

turtle.done()
Sep 9 '16 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.