print() 함수print(30)
print("동양미래대학교")
x, y = 25, 32
z = x + y
print(x, '+', y, '=', z)
→ 결과: 25 + 32 = 57
n = 10
m = 5.23
print("m={:.1f}, n={:5d}".format(m, n))
print(f"m={m:.1f}, n={n:3d}")
{} : 변수 자리 지정.1f : 소수점 첫째자리까지5d : 5자리 정수로 출력input() 함수n = input('Type a number: ') # 입력 → 문자열
int(n) # 정수 변환
float(n) # 실수 변환
str(3) # 숫자를 문자열로 변환
C = float(input("섭씨온도 입력: "))
F = C * 9/5 + 32
print("화씨온도:", F)