Skip to main content

Command Palette

Search for a command to run...

Series

Python

  1. Understanding Loops in Python

    Contents1️⃣ 반복문의 필요성 (Why do we need loops?)2️⃣ While문 (While loop)3️⃣ For문 (For loop) 1️⃣반복문의 필요성 (Why do we need loops?) 반복문은 동일한 작업을 여러 번 반복해야 할 때 매우 유용하다. 예를 들어, 학생들의 성적을 처리하는 경우, 각 학생의 성적을 각각 계산하는 대신, 반복문을 사용하면 모든 학생의 성적을 효율적으로 처리할 수 있다. 시간 절약...

    Jul 10, 20249 min read10
    Understanding Loops in Python
  2. Python Conditions and If statements

    1️⃣ 조건문 (Conditional statement)2️⃣ 조건문 연습 (Practice conditional statement) if 키워드를 사용하여 조건문을 사용한다.들여쓰기를 이용하여 코드블록을 표현한다.elif 키워드를 사용하여 그 외 조건을 사용한다.if, elif 조건 모두 부합하지 않는 조건을 else 키워드를 사용하여 처리한다. 1️⃣ 조건문 (Conditional statement) 조건문(if)은 왜 필요할까? (Why...

    Jul 9, 20243 min read5
    Python Conditions and If statements