Python Coding
7.51K subscribers
1.6K photos
4 videos
49 files
1.44K links
Learn Python to automate your things. We are here to support you. Ask your question

Reach us - info@clcoding.com

https://whatsapp.com/channel/0029Va5BbiT9xVJXygonSX0G
Download Telegram
August 16, 2020
August 17, 2020
August 18, 2020
August 19, 2020
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()
August 20, 2020
August 21, 2020
August 21, 2020
August 23, 2020
August 26, 2020
Forwarded from New Technology
August 27, 2020
Forwarded from New Technology
August 27, 2020
August 27, 2020
August 28, 2020
September 2, 2020
Forwarded from New Technology
September 3, 2020
September 4, 2020
September 5, 2020
September 7, 2020