Create one Python module: arithmetic which has two functions: add(x, y) and get_length(x). The description of two functions are below: def add(x, y): # add two numbers def get_length(x): # return the length of a given stringCreate one Python module: arithmetic which has two functions: add(x, y) and get_length(x). The description of two functions are below: def add(x, y): # add two numbers def get_length(x): # return the length of a given string

Respuesta :

Answer:

def add(x,y):

   print(x+y)

def get_length(x):

   return len(x)

add(17,19)

print(get_length("harry potter"))

#or you can also take some user input

x=int(input("please enter an integer: "))

y=int(input("please enter an integer: "))

add(x,y)

x1=input("please enter any string: ")

print(get_length(x1))

Explanation:

in python3 programming language