def func(value):
    if type(value) == type(100):
        return 100
    elif type(value) == type(""):
        return len(value) 
    else:
        return 20
 
 
a = '100.0'
b = 100.0
c = (100, 200)
 
print(func(a) + func(b) + func(c))

# '' 문자 타입
# 100.0 float 타입
# 괄호는 튜플 타입

Embed on website

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