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
The computer virus is simply a.......... a. diseases b.set of computer instrustruction or code c. types of bacteria​
Svetllana [295]

Answer: b

The computer virus is simply a ___

b. Set of computer instructions or code

4 0
2 years ago
URGENT!!!
LenaWriter [7]

Answer:

transaction

Explanation:

8 0
3 years ago
According to the SANS Institute, a __________ is typically a document that outlines specific requirements or rules that must be
nata0808 [166]
That’s should be in the quizlet I think..
7 0
3 years ago
What are the oop concept of java
mash [69]

Answer: OOP concepts in Java are the main ideas behind Java’s Object Oriented Programming. They are abstraction, encapsulation, inheritance, and polymorphism. Grasping them is key to understanding how Java works. Basically, Java OOP concepts let us create working methods and variables, then re-use all or part of them without compromising security.

HOPE THIS HELPED IS NOT SORRY.

4 0
2 years ago
Read 2 more answers
Which one can be used as watermark in a word document?​
otez555 [7]

Answer:

On the Design tab, select Watermark.

In the Insert Watermark dialog, select Text and either type your own watermark text or select one, like DRAFT, from the list. Then, customize the watermark by setting the font, layout, size, colors, and orientation. ...

Select OK.

4 0
3 years ago
Other questions:
  • Exit network systems, information support, and software development are all careers in which career cluster?
    10·1 answer
  • Which are the best examples of costs that should be considered when creating a project budget?
    11·1 answer
  • Why is an ISA unlikely to change between successive generations of microarchitectures
    11·1 answer
  • Which key combination will allow users to move to the top of a document?
    15·1 answer
  • What are horizontal and vertical page break? how and where are these inserted?​
    10·1 answer
  • Information technology has powerful effects on social behavior. Which of the following issues should NOT be expected when intera
    11·1 answer
  • I’ll mark brainliest, thanks
    10·2 answers
  • Create a query that shows columns employee last name, job title and hire date for those employees who joined the company on or a
    7·1 answer
  • What is the school wifi password trying to do my class work in school on different devices.
    9·1 answer
  • Use the drop-down menu to complete the steps for using the Goal Seek feature.
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!