Python Basic Course | While Loop & Functions | Coding For Kids in Python | Part 5

Publicado el: 09 abril 2022
en el canal de: Code with Riyaz
119
2

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


En esta página del sitio puede ver el video en línea Python Basic Course | While Loop & Functions | Coding For Kids in Python | Part 5 de Duración hora minuto segunda en buena calidad , que subió el usuario Code with Riyaz 09 abril 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 119 veces y le gustó 2 a los espectadores. Disfruta viendo!