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
On this page of the site you can watch the video online Python Basic Course | While Loop & Functions | Coding For Kids in Python | Part 5 with a duration of hours minute second in good quality, which was uploaded by the user Code with Riyaz 09 April 2022, share the link with friends and acquaintances, this video has already been watched 119 times on youtube and it was liked by 2 viewers. Enjoy your viewing!