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

Problem Solving/JUNGOL6

์„ ํƒ์ œ์–ด๋ฌธ 801 a = int(input()) if a 0: print(c) print("Obesity") else: print(c) 803 a = int(input()) if a>=20: print("An adult.") else: print(20-a,"years") 804 a = float(input()) if a= 3.0: print("B") else: print("C") 806 ๋ชจ๋ฅด๊ฒ ์Œ!!!ใ… ใ…  ์ž…๋ ฅ๋งŒ ๋ฐ›๊ณ  ์ถœ๋ ฅ์ด ์•ˆ๋จ st1 = input() st2 = input() st1,st2=st.split() if st1 == .. 2022. 1. 17.
๋ฆฌ์ŠคํŠธ1 781 li1=['Salad', 'Pizza', 'Chicken', 'Soup'] print(li1) 782 li1=['Python', 'is', 'exciting'] print(f'{li1[0]} {li1[1]} {li1[2]}') 783 li1=[1, 2, 3] li2=[3, 6, 9] li3=[3, 6, 9] li4=[3, 6, 9] li5=[2, 4, 6] print(li1+li2+li3+li4+li5) 784 li1=[1,2] li1.append(int(input())) print(li1[2]) print(li1[1]) print(li1[0]) 785 st1 = input() print(st1[0]) print((list(st1))[2]) 786 a = input('Element?') b = i.. 2022. 1. 14.
๋ฌธ์ž์—ด1 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}.') pri.. 2022. 1. 14.
747 : ์—ฐ์‚ฐ์ž - ์ž๊ฐ€์ง„๋‹จ 6 a = int(input()) b = int(input()) c = int(input()) r1 = bool(a > b and a > c) r2 = bool(a == b and b == c) print(r1, r2) 2022. 1. 13.
748: ์—ฐ์‚ฐ์ž - ์ž๊ฐ€์ง„๋‹จ7 a = str(input()) b = str(input()) s = '{0}{0}{1}{1}{1}'.format(a,b) print(s) 2022. 1. 13.
745 : ์—ฐ์‚ฐ์ž - ์ž๊ฐ€์ง„๋‹จ 4 ๋ฌธ์ œ ๋‘ ๊ฐœ์˜ ์ •์ˆ˜๋ฅผ ์ž…๋ ฅ๋ฐ›์•„์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์ด 4๊ฐ€์ง€ ๊ด€๊ณ„์—ฐ์‚ฐ์ž์˜ ๊ฒฐ๊ณผ๋ฅผ ์ถœ๋ ฅํ•˜์‹œ์˜ค.โ€‹ a = int(input()) b = int(input()) s = '{0} > {1} --- {2}'.format(a,b,a>b) print(s) t = '{0} < {1} --- {2}'.format(a,b,a=b) print(u) v = '{0} 2022. 1. 13.