본문 바로가기

😯 사는 이야기/코린이 파이썬

Day 06 (100 Days of Code: Python) - Functions & Karel

728x90

● While loops

1
2
3
4
5
6
7
8
9
10
11
#😀While loops
# while something_is_true
#    #Do somethng repeatedly
 
= 6
while a > 0:
    print("Hello")
    a -= 1 #a가 -1씩 돼서 0이 될 때까지 반복
 
while 5>3:
    print("a"#Infinite Loops 안끝남..
cs

 

Karel

 

Reeborg's World

 

reeborg.ca