melamela0109 / python-practice

1 stars 0 forks source link

#1.8 Code Challenge! >> 계산기 만들기 #9

Open melamela0109 opened 2 years ago

melamela0109 commented 2 years ago

def plus(a, b): return int(a) + int(b)

def minus(a, b): return int(a) - int(b)

def times(a, b): return int(a) * int(b)

def division(a, b): return int(a) / int(b)

def negation(a): return -int(a)

def power(a, b): return int(a) ** int(b)

def reminder(a, b): return int(a) % int(b)

print(power(4, "6"))

들여쓰기 조심