What is returned from the following user-defined function if you pass it the argument 9?

Automate Cybersecurity Tasks with Python | Weekly challenge 2 Quiz | 

What is returned from the following user-defined function if you pass it the argument 9?

def subtract(num):
total = 100 - num
return total
subtract(9)
  • 9.0
  • 91
  • 9
  • 100

 

Leave a Comment