E ** x minus one

Report a typo

Write a program that takes an integer x and prints the result of the (ex1e^x -1) formula, where e is a mathematical constant and x is the provided integer.

For this purpose use the function expm1() defined in the math module. It takes X as an argument and returns the result of the formula above. Read its documentation for more information.

The variable x is already defined.

Sample Input 1:

75

Sample Output 1:

3.7332419967990015e+32
Write a program in Python 3
# place `import` statement at top of the program


# don't modify this code, otherwise, `x` may not be available
x = int(input())

# use expm1() here
___

Create a free account to access the full topic