Share your repls and programming experiences

← Back to all posts
i was bored so i made this
LEVINWIsTHEBEST (26)

just an 10-year-old who likes repl.it. this repl has a lot of weird names so yeah. if you want to change it, please credit me, and also my friend @julianerick

Commentshotnewtop
carxspeed (5)

i feel like I am going to die for somereason
looks cool tho

julianerick (5)

levin this is so cool

sjames0330 (2)

also you can do turtle.speed('the higher the number in here the higher the speed)also you can tab all the work and then put a while True at the beginning of yout code

PDanielY (971)

I wouldn't recommend saying your age.

jhash (14)

@PDanielY Saying your age does not do anything online. As long as you don't say your full name, parent's name, etc, you're fine. It is a comman misconception to believe saying your information online is dangerous.

PDanielY (971)

@jhash Advertisers can send you targeted ads

jhash (14)

@PDanielY It is illegal to show targeted ads to people under the age of 18. Also, targeted ads only come from browser history and data stored inside of a database, not content from a website.

PDanielY (971)

@jhash Its under the age of 13 and do you think advertisers really care? Plus, some services (like repl.it) don't allow anyone under 13.

LEVINWIsTHEBEST (26)

thunder coder if u like this chech my profile. It has cool things in it

ThunderCoder (3)

@LEVINWIsTHEBEST how about your have it drawing circles and infinite amount of times? it will be way cooler if it filled up the screen completely.

LEVINWIsTHEBEST (26)

i also just started so ye

ThunderCoder (3)

@LEVINWIsTHEBEST I don't know how to either. oops!

pyplacca (1)

You could use a while loop like while True: ... @LEVINWIsTHEBEST

And instead of creating multiple turtle objects, you could just use one turtle object and nested for loops, and iterate over an array of colors. Like this;

import turtle

screen = turtle.Screen()
pen = turtle.Turtle()
pen.speed(.5)

size, repeat = 20, 10
for color in ['teal', 'yellow', 'black', 'white', 'blue']:	 
    pen.color(color)
    for _ in range(repeat):
	temp_size = size
	for _ in range(10):
	    pen.circle(temp_size)
	    temp_size -= 2
	pen.right(360/repeat)
    size += 10

screen.mainloop() # keeps the window on till you close

but you must note that as the circles get bigger, it takes longer to complete