In this video, we talk about While Loop & Functions in Python.
Edu Blocks: https://app.edublocks.org/editor
While Loop with Random Numbers:
===============================
import random
from turtle import *
number = 1
turtle = Turtle()
while number != 0:
number = random.randrange(10)
print(number)
turtle.color("green")
turtle.circle(number*10)
turtle.left(number*2)
Circle Functions:
=================
from turtle import *
turtle = Turtle()
def drawCircle(size,color,angle):
turtle.left(angle)
turtle.fillcolor(color)
turtle.begin_fill()
turtle.circle(size)
turtle.end_fill()
drawCircle(60,'red',10)
drawCircle(70,'green',20)
drawCircle(80,'blue',30)
drawCircle(90,'orange',40)
drawCircle(90,'yellow',50)
drawCircle(100,'black',60)
Github Link: https://github.com/codewithriyaz/basi...
00:00 While Loop
16:28 Function
#python #codingforkids #loopsinpython #while #loop #turtle #functions #functionsinpython
Nesta página do site você pode assistir ao vídeo on-line Python Basic Course | While Loop & Functions | Coding For Kids in Python | Part 5 duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Code with Riyaz 09 Abril 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 119 vezes e gostou 2 espectadores. Boa visualização!