# 11
# 클래스화
삼성전자 = 50000
class samsung:
def calculate(times):
return 삼성전자 * times
def print(cost):
print(cost)
s1 = samsung
stock = int(input("삼성전자 몇 주를 가지고 있나요?: "))
s1.print(f"총 평가금액은 {s1.calculate(stock)}원 입니다")
# 12
시가총액 = 298000000000000
현재가 = 50000
PER = 15.79
# 13
s = "hello"
t = "python"
print(s+"!", t)
# 14
print(2 + 2 * 3) # 답 : 8
# 15
a = "132"
print(type(a))
# 16
num_str = "720"
print(type(int(num_str)))
# 17
num = 100
print(str(num))
# 18
num = "15.79"
print(float(num))
# 19
year = "2020"
year = int(year)
for i in range(year-1, year-4, -1):
print(i)
# 20
cost_per_month = 48584
times = 36
print(f"총 금액은 {cost_per_month * times} 입니다")