Function divide two numbers
()
| 33 | |
| 34 | |
| 35 | def division(): |
| 36 | """Function divide two numbers""" |
| 37 | n1 = float(input("Enter first number: ")) |
| 38 | n2 = float(input("Enter second number: ")) |
| 39 | if n2 == 0: |
| 40 | print("Invalid entry") |
| 41 | return "Invalid entry" |
| 42 | print(n1 / n2) |
| 43 | |
| 44 | return n1 / n2 |
| 45 | |
| 46 | |
| 47 | def average(): |