Python 15

Python Training Day4. Loops

오늘은 프로그래밍의 기본이자 꽃 Loop 문제를 풀었다. 문제가 쉬워서 출근 길, 회사에서 화장실 가는 길 걸어다니며 다 했다. 퇴근 길에 포스팅까지 마무리! Chapter 7. Loops 1. The "for" loop 2. "while" loops 3. "break" and "continue" statements 4. Can we use "else" clause for loops? Exercise List 안의 숫자 237까지만 출력되게 하고, 그 뒤 숫자들은 출력하지 않는 조건의 문제였다. for, while, break, continue를 쓸 때 신경써야 할 것은 print를 어느 위치에서 찍느냐이다.

이전 글 2022.12.15

Python Training Day3. Conditions

다행히 오늘 주제는 내용이 많지 않아서 금방 끝낼 수 있었다. True, False에 대한 내용이다. (그런데, 문제 푸는 것보다 포스팅하는 게 더 오래 걸리는 건 어떻게 해결해야 할까 생각 좀 해 봐야겠다) Chapter 6. Conditions Python uses boolean logic to evaluate conditions. The boolean values True and False are returned when an expression is compared or evaluated. 1. The "and" and "or" boolean operators allow building complex boolean expressions. 2. The "in" operator could be use..

이전 글 2022.12.14