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
There are over 150 free themes on Wordpress.com. Which of the following is a common feature for which you can filter your theme
Oduvanchick [21]

Answer:

A responsive layout is usually a common and important aspect of a theme since it can allow users to use different devices and receive a proper satisfactory visit.

Explanation:

Depending on the purpose of the site, you need to be decided what functionalities you deem necessary and which are just useful in case you might need it later on. Example

A blog site will required a good blog theme,

including one that has ecommerce options depends weather the blogger might be thinking of selling things or not.

8 0
3 years ago
Occurs when the same data are stored in multiple places
Minchanka [31]
D. Data redundancy. This means the data is located in multiple places when it isn't necessary to do so.
8 0
3 years ago
1) What is Database? List its Uses.<br>​
Serggg [28]

Answer:

a database stores a large sum of data

Explanation:

its used to keep track of things like student names bank accounts and other things

7 0
2 years ago
What is number system​
schepotkina [342]

<u>★ Defination:</u>

The number system or the numeral system is the system of naming or representing numbers. The number system helps to represent numbers in a small symbol set.

<u>★ Tips:</u>

The value of any digit in a number can be determined by:

• The digit

• Its position in the number

• The base of the number system

<u>★ Types of number system:</u>

There are various types of number system in mathematics. The four most common number system types are:

• Decimal number system (Base- 10)

• Binary number system (Base- 2)

• Octal number system (Base-8)

• Hexadecimal number system (Base- 16)

8 0
3 years ago
A customer in a store is purchasing 5 items. Write a python program that asks for the price of each item and display the subtota
alex41 [277]

Answer:

total = 0

for i in range(5):

 product = float(input())

 tax = product * 0.07

 print('Product price:',product)

 print('Product tax:',tax)

 print('----------------------')

 total += product+tax

print('Total:',total)

Explanation:

Step 1 variables definition

total = 0

Step 2 loop over quantity of products

for i in range(5):

Step 3 ask for price and calculate the tax

product = float(input())

tax = product * 0.07

Step 4 print the product total

 print('Product price:',product)

 print('Product tax:',tax)

 print('----------------------')

Step 5 print the general total

print('Total:',total)

6 0
3 years ago
Other questions:
  • Laser printers are particularly effective for printing _______________.
    6·1 answer
  • Which of the following is not one of the five major areas to include in your notes organizer?
    15·2 answers
  • Is a processor is be the same speed as the chips on the motherboard??​
    12·2 answers
  • Choose the correct option that completes the sentence.
    13·1 answer
  • In this lab, you open a file and read input from that file in a prewritten C program. The program should read and print the name
    5·1 answer
  • Ayudaaaaa, Instale el software equivocado a mi tv westinghause con placa tp.Ms338.Pb801 y ahora queda en negro, ¿Cómo lo puedo s
    15·1 answer
  • Please
    14·1 answer
  • 1110011*110011 binary multiplication
    9·2 answers
  • Write a program that generates 100 random numbers and keeps a count of how many of those random numbers are even and how many of
    15·1 answer
  • if ( (ans == 'Y' &amp;&amp; errors &lt; 5) || numTries &lt; 10 ) // note uppercase 'Y' count++; Which combinations of values res
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!