Human: create exponential function in. Assistant: 
Here is a Python code to create exponential in Python

import math

def create_exponential_function(x):
    """Create exponential function."""
    return 2**x

# Enter the value
x = 2

# Calling the function
print((create_exponential_function(x)))

#Remember to inspect code for bugs.