본문 바로가기
IT World/Python

Python Training Day2. learnpython.org Indentation

by 닷라인웨이 2022. 12. 4.

영어로 된 Python 문제를 풀 수 있는 괜찮은 사이트를 찾았다.

YouTube 영상 중에 Stefanovic 채널의 'FASTEST Way to Become a Data Analyst and ACTUALLY Get a Job' 영상에서 소개해준 사이트이다.

Tutorial이 있고 Exercise를 푸는 방식으로 되어 있다. 코딩도장이랑 유사한 방식인데, learnpython.org는 Test를 치르고, Certificate도 취득해서 LinkedIn에도 추가할 수 있다고 한다.

 

아주 아주 기초적인 내용부터 구성되어 있는데, 그냥 이 순서에 맞춰 하루 1개씩 공부한다.

그 목적은 영어 용어에 익숙해지는 것이다.


Chapter 1. Indentation (learnpython.org)

 

Parentheses: one of a pair of marks ( ) that are used around a word, phrase, sentence, number, etc.
Indentation: a space at the beginning of a written line or paragraph.
Curly Braces: {}

 

Indentation

Python uses indentation for blocks, instead of curly braces. Both tabs and spaces are supported, but the standard indentation requires standard Python code to use four spaces. 

 

print가 별 것 아닌 것 같지만, Python에서 내가 짠 코드가 정상 작동하는지 부분 부분 확인해가며 작업할 때 필수적으로 사용할 줄 알아야 하는 function(함수)이다.

 

댓글