May 24, 2021

[Python] Atithmetic operators, data type, relational and comparison operators, print, format string, input (파이썬: 산술 연산자, 데이터자료형, 관계 및 비교 연산자, 출력, 입력)

■ Atithmetic operators (산술 연산자)

[Input]

print(1 + 1)

print(1 - 1)

print(2 * 2) # 곱셈

print(4 / 3) # 나눗셈->실수

print(4 // 3) # 몫만 계산

print(4 % 3) # 나머지만 계산

print(2 ** 10) #승수 연산자

[Output]

2 0 4 1.3333333333333333 1 1 1024

■ Data type (데이터 자료형)

[Input]

print(type(3))

print(type('A'))

print(type(3.14))

[Output]
<class 'int'> <class 'str'> <class 'float'>

■ Relational and comparison operators (관계 및 비교 연산자)

[Input]
print(10 < 3)
print(10 >3)
print(10 >= 3)
print(10 <= 3)
print(10 == 3)
print(10 != 3)
[Output]
False
True True False False True

May 1, 2021

[Python] 공공데이터를 가져올 수 있는 유용한 사이 (A a useful site for gathering public data)

1. 공공데이터 포털
https://www.data.go.kr/index.do

2. 서울 열린데이터 광장
https://data.seoul.go.kr/index.do

3. DACON
https://dacon.io/