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

Respuesta :

The function print_feet_inch_short(), with parameters num_feet and num_inches, that prints using ' and " shorthand. End with a newline is as follows:

def print_feet_inch_short(num_feet, num_inches):

    print(str(num_feet) + " ' ", str(num_inches)+"\"")

print_feet_inch_short(5, 6)

Code explanation:

The code is written in python.

  • We defined a function named "print_feet_inch_short". The function accept two argument namely "num_feet" and "num_inches".
  • We print the string format of our argument with the required apostrophe.
  • Then, we finally call the function  with the required parameters.

learn more on python here: https://brainly.com/question/24551910

Ver imagen vintechnology