# for i in [1, 2, 3]:
# print("*")
# for i in "abcdef":
# print("*")
sum = 0
for i in [3, 6, 9]:
sum += i
print(sum)
mix = "씰씰씰씰씰씰쌀쌀쌀씰쌀씰쌀"
count = 0
for i in mix:
if i == '쌀':
count += 1
print(count)
# for i in range(1, 21): 1부터 21-1 구간 동안 반복
# for i in range(21): 21번 반복
for i in range(5, 8):
print(i)
i = 0
while i < 3:
print(i)
i += 1
i = 0
while True:
print("hello")
if i > 3:
break
i += 1
list = []
n = int(input())
for i in range(n):
m = int(input())
list.append(m)
max = 0
j = 0
while j < n:
if list[j] > max:
max = list[j]
j += 1
min = list[0]
j = 0
while j < n:
if list[j] < min:
min = list[j]
j += 1
print(f"최댓값: {max}, 최솟값: {min}")
To embed this project on your website, copy the following code and paste it into your website's HTML: