print('hello') #출력
a = input() #입력
print(max([10, 30, 60, 20, 40, 50])) #최댓값 구하기
print(min([3, 20, 32, 9, 84, 48])) #최솟값 구하기
print(max('hello'))
print(min(['아', '나', '사', '다']))
print(sum([100,34,67,2000])) #합계 구하기
print(len('hello')) #길이

def my_func(a, b):
    c = 2 * (a+b)
    return c
print(my_func(10,20))

def add(a, b):
    c = a + b
    return c
print(add(15, 15))

def my_sum(a):
    l = len(a)
    s = 0
    for i in range(l):
        s = s + a[i]
    print(s)
my_sum([10,10,10,10])

my_dict = {'사과': 'apple', '바나나':'banana', '당근': 'carrot'}
print(my_dict['사과'])
del my_dict['당근']
my_dict['체리'] = 'cherry'
print(my_dict)

lyrics = '바람이,분다,바람이,불어,연평,바다에,어허어얼싸,돈바람,분다,얼싸,좋네,좋아'
lyrics_list = lyrics.split(',')
print(lyrics_list)
print(lyrics_list[7])

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: