728x90
● While loops
1 2 3 4 5 6 7 8 9 10 11 | #😀While loops # while something_is_true # #Do somethng repeatedly a = 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
'😯 사는 이야기 > 코린이 파이썬' 카테고리의 다른 글
Day 09 (100 Days of Code: Python) - Dictionaries and Nesting (0) | 2022.06.07 |
---|---|
Day 08 (100 Days of Code: Python) - Function Parameters (0) | 2022.05.23 |
Day 07 (100 Days of Code: Python) -Hangman (0) | 2022.05.12 |
Day 05 (100 Days of Code: Python) - Loops (0) | 2022.05.08 |
Day 04 (100 Days of Code: Python) - Lists, Randomisation (0) | 2022.05.07 |