๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • What would life be If we had no courage to attemp anything?
Problem Solving/JUNGOL

๋ฌธ์ž์—ด1

by DevIseo 2022. 1. 14.

762๋ฒˆ

st9 = input()
st10 = input()
st1, st2 = st9.split()
st3, st4 = st10.split()

print(st1,'age +', st3, 'age =', int(st2)+int(st4))

 

763๋ฒˆ 

st1 = input()
st2 = input()

st9 = st1.strip()
st10 = st2.strip()
print(st9,st10)

 

764๋ฒˆ

st1 = input()
st2 = input()
st3 = input()

st4, st5 = st1.split()
st6, st7 = st2.split()
st8, st9 = st3.split()

print(f'{st4} sounds {st5}.')
print(f'{st6} sounds {st7}.')
print(f'{st8} sounds {st9}.')

 

993๋ฒˆ

st1 = input()
st2 = input()
st3 = float(input())

print(f'I am {st1}(IdNo. {st2}). I got {st3} in my midterm exam.')


name = input()
number = int(input())
score = float(input())

print("I am {0}(IdNo. {1}). I got {2:.6f} in my midterm exam.".format(name, number, score))

879๋ฒˆ

print("%10s%10s%10s%10s"%('item','count','price','rate'))
print("%10s%10s%10s%10s"%('pen','20','100','50.5'))
print("%10s%10s%10s%10s"%('note','5','95','35.3'))
print("%10s%10s%10s%10s"%('eraser','110','97','14.2'))

๋Œ“๊ธ€