melamela0109 / python-practice

1 stars 0 forks source link

#1.9 Conditionals part One #10

Open melamela0109 opened 2 years ago

melamela0109 commented 2 years ago

def plus(a, b): if type(b) is int or type(b) is float: return a + b else: return None

print(plus(3, "lalala")) >> none

들여쓰기 중요