prices = input('달러 단어를 붙여 금액을 입력해주세요\t:\t')
exchange_rate = 1112
if prices[-2:] == '달러':
print(f'{int(prices[:-2]) * exchange_rate} 원')
elif prices[-3:] == ' 달러':
print(f'{int(prices[:-3]) * exchange_rate} 원')
int_prices = int(prices[0:3])
total_price = int_prices * exchange_rate
print(f'환율적용 금액출력\n:\t{total_price} 원')
prices = input('달러 단어를 붙여 금액을 입력해주세요\t:\t')
exchange_rate_us = 1112
exchange_rate_cn = 171
if prices[-2:] == '달러':
print(f'달러환율적용 : {int(prices[:-2]) * exchange_rate_us} 원')
elif prices[-3:] == ' 달러':
print(f'달러환율적용 : {int(prices[:-3]) * exchange_rate_us} 원')
elif prices[-2:] == '위안':
print(f'위안 환율적용 : {int(prices[:-2]) * exchange_rate_us} 원')
elif prices[-3:] == ' 위안':
print(f'위안 환율적용 : {int(prices[:-3]) * exchange_rate_us} 원')
prices = input('달러 단어를 붙여 금액을 입력해주세요\t:\t')
exchange_rate = {'달러' : 1112, '위안' : 171, '엔' : 1010}
for c,p in exchange_rate.items():
if prices[-2:] == c:
print(f'{c}환율적용\t:\t{int(prices[:-2]) * p} 원')
for i in range(1,10):
for c in range(1,10):
print(f'구구단 {i}단\t:\t{i}*{c} = {i*c}')
for i in range(1,10):
for c in range(1,10):
result = i * c
if result % 2 == 0:
print(f'구구단 {i}단\t:\t{i}*{c} = {result} \t짝수입니다.')
else:
print(f'구구단 {i}단\t:\t{i}*{c} = {result} \t홀수입니다.')
dong = ['201동', '202동', '203동', '204동', '205동', '205동', '206동','207동', '208동']
ho = ['101호', '102호', '103호', '104호', '105호', '106호', '107호', '108호', '109호', '110호', '111호', '112호', '113호', '114호', '115호', '116호']
dict_address = dict()
for d in dong:
for h in ho:
print(f'\t{d}\t{h}')
dong = ['201동', '202동', '203동', '204동', '205동', '205동', '206동','207동', '208동']
ho = ['101호', '102호', '103호', '104호', '105호', '106호', '107호', '108호', '109호', '110호', '111호', '112호', '113호', '114호', '115호', '116호']
dict_address = dict()
new_ho = []
for d in dong:
for h in range(0,len(ho),2):
print(f'{d}\t{ho[h]} {ho[h+1]}')
print('\n')