# Define a function that prints the word hello
# Define a function that takes a name as input argument
# Then prints Hello and the name
# Define a fucntion called my_function
# That takes a boolean value (True or False) as an input
argument
# If the input is True print Hello
# if the Input is False print Goodbye
# Define a function called multiply
# that takes two numbers as inputs
# The funciton should return the result of the multiplied input
arguments
# Save the returned value in a varaible called answer.
# Print the answer variable
# Define a funciton called is_even
# that takes one number as an input argument
# If the input number is even it should return True
# If the input number is odd is should return False
# Save the rerturned value in a variable called 'bool'
# Print the date type of the varaible 'bool'
Python code for the above mentioned functions are given below:
1 . Define a function that prints the word hello
Output
2. Define a function that takes a name as input argument . Then prints Hello and the name
Output:
3 . Define a fucntion called my_function
# That takes a boolean value (True or False) as an input
argument
# If the input is True print Hello
# if the Input is False print Goodbye
Output
4. Define a function called multiply
# that takes two numbers as inputs
# The funciton should return the result of the multiplied input
arguments
# Save the returned value in a varaible called answer.
# Print the answer variable
Output
5 . Define a funciton called is_even
# that takes one number as an input argument
# If the input number is even it should return True
# If the input number is odd is should return False
# Save the rerturned value in a variable called 'bool'
# Print the date type of the varaible 'bool'
Output
Get Answers For Free
Most questions answered within 1 hours.