Web appOpen in Telegram

Posthttps://qr.ae/pN2ojh What are the best Python scripts you've ever written?

20 August 2020
P
Python Coding (CLCODING)
https://qr.ae/pN2ojh What are the best Python scripts you've ever written? Well, I won’t call it best, because I didn’t plan it. I was just playing around with fractal figures when a wrong input value gave me something which I could just sit and look all day long. from turtle import * import random color_selection = ['violet', 'indigo', 'blue', 'green', 'orange', 'yellow', 'red'] def tree(branchLen, t): color(color_selection[random.randint(0, 6)]) if branchLen > 1: forward(branchLen) right(45) tree(branchLen-15, t) left(45) tree(branchLen-15, t) right(45) backward(branchLen) def main(): reset() t = Turtle() hideturtle() bgcolor('black') title('Necklace') setposition(0, -100) left(90) penup() backward(30) pendown() tree(90, t) exitonclick() if name == 'main': main()
2 · 2.1K ·

Nearby in the feed

PPython Coding (CLCODING)https://www.facebook.com/pirawenpython/ 8K+ FollowersPPython Coding (CLCODING)@jupyter_python
this message
PPython Coding (CLCODING)@jupyter_pythonPPython Coding (CLCODING)@jupyter_python
PPython Coding (CLCODING)Python Coding (CLCODING)@pythonclcoding · channel · Tech
9 625subscribers281average post reach
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count