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
asambeis [7]
3 years ago
15

Formatting. Given input that represents a floating point number, that is, made up of digits and at least one decimal point, conv

ert the input to a float and print it with the following specifications: * field width of 12 * 2 decimal digits of precision * right justified For example, if the input is 1234.56789 The output will be 1234.57 Note the five spaces to the left of the digit 1.
Use the input statement in the skeleton: s = input("Input a float: ")
Computers and Technology
1 answer:
Ronch [10]3 years ago
3 0

Answer:

s = input("Input a float: ")

print("{:12.2f}".format(float(s)))

Explanation:

  • Read a number  from user using the input function of Python.
  • Use the format function of Python to correctly format the output according to the given requirements.
  • Note: Use Python 3.6 or above for this code to run without any issue.

Output:

Input a float: 1234.56789

1234.57

You might be interested in
Is TCP really more secure than other L4 protocols by default?
yulyashka [42]

Answer:

Yes TCP is

Explanation:

3 0
2 years ago
MULTIPLE CHOICE QUESTION
Anarel [89]

Answer:

Cheaper price.

Explanation:

It's not cheaper price. Most desktops are pretty expensive.

4 0
2 years ago
Read 2 more answers
Refer to the image on the right. Then, using the drop-down menu, identify the correct printer type. A: inexpensive home printer
Ivanshal [37]

Answer:

1st Option: Inkjet

2nd Option: Laser

Explanation:

Got it right on Edge 2020

6 0
3 years ago
25 POINTS + BRAINLIEST PLS HELPWhere should you put the argument for a command?
Maslowich

d. on. the. line. just. after the. command

8 0
3 years ago
Why dose this keep popping up will give brainlest for first person answer
torisob [31]
What happens when you click answer questions? If nothing happens, exit out or restart, it’s a glitch.
6 0
4 years ago
Other questions:
  • Using a wireless network without the network owner's permission is known as ________.
    15·1 answer
  • Hunter took his sick puppy to Jade to get medication. Jade is
    14·2 answers
  • MS Excel is a powerful spreadsheet program that helps people with complex mathematical calculations. In what ways could you use
    10·1 answer
  • The largest type of computer system with the most extensive storage capacity and the fastest processing speeds is a ________.
    7·1 answer
  • Which of the following is not considered format?
    8·2 answers
  • A(n) _________ is a computer system which is part of a larger system which performs a dedicated function.
    8·1 answer
  • Brake fluid should be checked __________.
    8·2 answers
  • It is impossible to use a computer without a mouse. Is this statement true or false?
    10·1 answer
  • ¡Hola! He visto en muchos comentarios de Twitter "svd" cuando alguien dice "dale fav a este Tweet y siganse entre ustedes" y en
    8·1 answer
  • Write a set of nested loops that display 10 rows of # characters. There should be 15 # characters in each row.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!