Files
python-study/ex) Test.py
김민구 30ef4cfbc7 1. 숫자형
2. 문자열
ex) 혼자 그냥 해본거
2021-04-26 16:58:27 +09:00

32 lines
418 B
Python

print("goodbye world!")
# 와우 언빌리버블
for i in range(3): print(12)
# 함수
def hello(name):
print("""Hello!
Welcome to Codeit""" + name)
# 함수 호출
hello("chris")
hello("zz")
hello("hell")
# 함수
def print_sum(a, b):
print(a + b)
print(a - b)
print(a * b)
print(a / b)
# 함수 호출
print_sum(10, 2)
# 형변환
a = int(10);
b = int(3);
print(a * b);
print(10 * 3);