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]
4 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]4 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
The cpu understands instructions written in a binary machine language. <br> a. true <br> b. false
Jet001 [13]

The CPU understands instructions written in a binary machine language: A. true.

<h3>What is a CPU?</h3>

CPU is an abbreviation for central processing unit and it can be defined as the main components of a computer because it acts as the “brain” of a computer and does all the processing, calculations, and logical control of the data entered through the keyboard into output that are displayed on the monitor.

This ultimately implies that, the central processing unit (CPU) performs most of the calculations, which enables a computer to function and is sometimes referred to as the “brain” of the computer.

Generally, the central processing unit (CPU) only understands instructions that are written in a binary machine language.

Read more on CPU here: brainly.com/question/5430107

#SPJ1

7 0
2 years ago
It is a read mostly memory that can be electronically written into any time without arising prior contact
tatuchka [14]

Answer:

d. EEPROM

Explanation:

EEPROM stands for Electrically erasable programmable read-only memory which is characterized as a non-volatile working memory chipset capable of storing information and distaict on terms of its stability and data retention capability. EEPROM's are very advantageous and provide several up features than most other chipset. The retention ability of information on EEPROM'S such that initial content remains intact while writing even when power is removed. Other memory types mentioned also have their own features, however. EEPROM best suits the description.

3 0
3 years ago
To deny a host from sending HTTP traffic destined to a specific server you will need to apply a __________ Access Control List.
DedPeter [7]

I would a Standard Access control List

There are two common access lists: The standard and extended access list.  With the standard access list, it creates filters only on source addresses and is commonly used for server-based filtering. They are not as powerful as extended access lists. Standard Access lists are typically used for restricting access to a router through HTTP and HTTPS.  


6 0
3 years ago
Read 2 more answers
the corrective actions you need to perform on a computer in case it functions in an unexpected manner is called what
Vadim26 [7]
These actions are called troubleshooting. One of the first ones would be to save your work, if you can, close all open programs and then shut down your computer (not restart). Wait a couple if minutes, start and see if the problem has been alleviated.
5 0
4 years ago
I was wondering how to give a person a Brainliest answer. Could someone please explain to me the steps on to giving someone a Br
alina1380 [7]
When more than 1 person gives an answer to your question, you receive the option to tick the one you think is more well-explained or thought out in order to make that the Brainliest Answer :)
4 0
3 years ago
Other questions:
  • What are the main types of software? Explain with appropriate examplesWhat are the main types of software? Explain with appropri
    12·2 answers
  • 40 POINTS PLZ HELP NEED ASAP!!!
    5·1 answer
  • You want to boot a linux system into singer user mode/ what options might you add to a linux kernel options list in a boot loade
    9·1 answer
  • Ifdjgidfpojcjdizchnllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllsssssssssssssssssssssssssss
    13·2 answers
  • If the executives for Office Max LLC, a chain of office supply stores, developed the chain's objectives by asking buyers and sto
    11·1 answer
  • You just got a call from the University system administrator, who says that either you or your roommate is issuing denial-of-ser
    8·1 answer
  • Ray is recording his voice for a presentation and can adjust the bit depth. Increasing the bit depth will mean that sound is sam
    12·1 answer
  • Makayla is cre iting a brochure for her computer consulting company. She designed the layout and placed a banner containing the
    6·1 answer
  • The main work area of the computer is the
    14·2 answers
  • Fill the labels!! Please quickly I need help quickly
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!