1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tanya [424]
3 years ago
6

Define a function print_feet_inch_short(), with parameters num_feet and num_inches, that prints using ' and " shorthand. End wit

h 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)
Computers and Technology
2 answers:
Crazy boy [7]3 years ago
4 0

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.

Learn more : brainly.com/question/18318709

tiny-mole [99]3 years ago
4 0

Program Explanation:

  • Declaring method "print_feet_inch_short" that takes two variable "num_feet and num_inches".
  • Inside the method parameter variable is used that converts the value into the string and prints its value.
  • Outside the method, a parameter variable is declared that uses an input method with the int method that takes an integer value.
  • calling the method by passing parameter value.

Program:

def print_feet_inch_short(num_feet, num_inches):# defining a method print_feet_inch_short which takes two parameters.

   print(str(num_feet)+"'",str(num_inches)+"\"")# using print method that converts parameters value into string  

num_feet = int(input())# defining num_feet variable input integer variable

num_inches = int(input())# defining num_inches variable input integer variable

print_feet_inch_short(num_feet, num_inches)#calling method

Output:

Please find the attached file.

Learn more:

brainly.com/question/14637323

You might be interested in
Ask the user for two numbers. Print only the even numbers between them. You should also print the two numbers if they are even.
madreJ [45]

I've included the code in the picture below.

5 0
3 years ago
To someone on the internet or another outside network, it appears that all information is coming from a single computer when ___
aev [14]
Application gateway or application layer gateway
6 0
3 years ago
Is this free? do i have to pay to use this app??
Virty [35]
No i don’t have to pay but there is additional stuff if you pay but i don’t pay for anything
3 0
3 years ago
Which operating system became obsolete with the arrival of a more advanced graphical user interfaces
12345 [234]
The answer is Ms Dos
6 0
4 years ago
Each time you save a document, _____. you will need to type in the file type in which it should be saved you can select the Save
ICE Princess25 [194]

The best answer is B: you can select the Save button to save it with the same file name if it has been previously saved

This answer depends on whether or not the document has initially been saved. If it has, then clicking the save button every time will save the file with its current name. Clicking the save as button each time will only let you save the file with a new name and an option to save it in a new location.


3 0
4 years ago
Other questions:
  • Microsoft access does not create n:m relationships because microsoft access creates databases based on
    7·1 answer
  • The goal of an audio codec is
    10·1 answer
  • True or false it is possible to insert an external drive that connects to your computer using a usb cable while the computer is
    15·1 answer
  • Change the screen resolution so you can view more information on your screen. Use the resolution that enables you to fit the mos
    7·1 answer
  • federal law requires public libraries to install filtering software on computers to prevent children from accessing adult conten
    14·1 answer
  • ____ is the process of drawing a series of increasingly detailed DFDs, until all functional primitives are identified.
    7·1 answer
  • ¿por qué se debe seleccionar todo el texto de un documento de word?. ​
    14·1 answer
  • One benefit of open source software is that it
    9·1 answer
  • You want to add a picture of a potential new office layout to the title page of a proposal. How can you adjust the size of the i
    14·1 answer
  • A local router is configured to limit the bandwidth of guest users connecting to the Internet. Which of the following best expla
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!