Question

# PROGRAM PYHTON Write a function called "calculateInput" that when called, it asks the user to enter...

PROGRAM PYHTON

Write a function called "calculateInput" that when called, it asks the user to enter an number. Then, it asks for a second number. These will use the "input" command. Store these as two separate variables. This function takes NO arguments and is also a VOID function, there is no return statement. The function should print the result of these two numbers multiplied together. The program should be able to multiply floats.

For example:

Test Input Result
`calculateInput()`
```5
2```
```Please enter an integer: 5
Please enter a second integer: 2
10.0
```
`calculateInput()`
```3.5
7```
```Please enter an integer: 3.5
Please enter a second integer: 7
24.5
```
`calculateInput()`
```5
5```
```Please enter an integer: 5
Please enter a second integer: 5
25.0
```
`calculateInput()`
```12
3```
```Please enter an integer: 12
Please enter a second integer: 3
36.0
```
`calculateInput()`
```100
52
```
```Please enter an integer: 100
Please enter a second integer: 52
5200.0
```

Answer:(penalty regime: 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100 %)

``````def calculateInput():
n2=float(input("Please enter a second integer: "))
print(n1*n2)
calculateInput()
``````

NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.

#### Earn Coins

Coins can be redeemed for fabulous gifts.