Define a function print_feet_inch_short, with parameters num_feet and num_inches, that prints using ‘ and ” shorthand. End with a newline. Remember that print outputs a newline by default. Ex: print_feet_inch_short(5, 8) prints:
5′ 8″
Hint: Use \” to print a double quote.
”’ Your solution goes here ”’
user_feet = int(input)
user_inches = int(input)
print_feet_inch_short(user_feet, user_inches) # Will be run with (5, 8), then (4, 11)
def print_feet_inch_short(num_feet, num_inches):
#function named print_feet_inch_short takes in two arguments.
print(str(num_feet)+”‘”,str(num_inches)+”\””)
#output the feet and inch value supplied with the shorthand sign of feet and inch using string concatenation.
num_feet = int(input())
#allows user to specify a feet value and stores it in num_feet
num_inches = int(input())
#allows user to specify an inch value and stores it in num_inch
print_feet_inch_short(num_feet, num_inches)
#calling the function with the number of feets and inches given by user.