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
Readme [11.4K]
3 years ago
15

Given two variables hasToner and hasPaper of type bool, that have been declared and given values, write a code block that will o

utput "Need supplies" if either is not true, otherwise output "Printing...". In either case, end with a newline.
Computers and Technology
1 answer:
shusha [124]3 years ago
7 0

Answer:

# hasToner variable of type bool

hasToner = True

# hasPaper variable of type bool

hasPaper = False

# The if statement check if hasPaper and

# hasToner is true. If True, it display

# "Printing" and end with new line

if(hasPaper and hasToner):

   print("Printing", end="\n")

# If either of the variable is false

# It display "Need supplies" and end with new line

else:

   print("Need supplies", end="\n")

Explanation:

The value of hasToner and hasPaper can be changed to any boolean type and the required output will be gotten

You might be interested in
(EASY 15 POINTS) What are two indications in a browser that a secure connection is being used?
jeyben [28]
<span><span>High Visibility Online merchants want you to see these site seals. They want you to know they have made every effort to make their site a safe shopping experience. Therefore, the site seal is usually located where you, the customer, can easily see it.</span><span>Difficult to Duplicate The site seals are designed to be difficult for thieves and scammers to duplicate. Many times the site seal will have a date and time stamp on it.</span></span>
4 0
3 years ago
Most editing commands in Word, such as cut, copy, and paste, can be found on which tab?
Anettt [7]
All these commands can be found on the home tab. Keyboard shortcuts (Ctrl-X, Ctrl-C, Ctrl-V) are also editing shortcuts.

:)
7 0
3 years ago
Read 2 more answers
The _______ is a small program run by a computer when first powered on. its primary function is to stabilize the machine and dev
tigry1 [53]
Hello <span>TheCelloAlex1645 </span>

Answer: <span>The BIOS is a small program run by a computer when first powered on. its primary function is to stabilize the machine and devices on the motherboard so that the operating system can be loaded and take control of the computer.


Hope this helps
-Chris</span>
3 0
3 years ago
How does an agile team obtain clarity on backing items that may be picked up in upcoming iterations? (1 correct answer)
Vinvika [58]

Answer:

The correct answer to the following question will be "Option 4".

Explanation:

Group seems to have a backlog optimization conversation with either the company owner after each iteration to obtain insight about the backlog things to have been collected in the future iterations or executions.

  • Without the need to get feedback on the backlog or pending things in preparation for potential implementations.
  • The next phase brings the dedicated backlog to completion. Iteration targets are calculated, based on dedicated research.
8 0
4 years ago
If you want to refine your google search results by date, which option should you use?
VashaNatasha [74]
Advanced Search. It's able to filter out things.
8 0
3 years ago
Other questions:
  • So im leavin brainly....goodbye. (❤´艸`❤)
    13·2 answers
  • When creating a software package, the software must be designed, the code must be written, and then the code must be tested. Thi
    6·1 answer
  • The entrance facility is the place where the connection to a WAN is located. It is basically the point where the LAN begins and
    9·1 answer
  • A virus or worm can have a payload that installs a(n) __________ door or trap-door component in a system, which allows the attac
    14·2 answers
  • True false) cad means computer aided manufacturing​
    10·1 answer
  • What would be the desired output of the home-security system
    8·1 answer
  • ___ allow users to select controls by keyboard shortcuts. (Points : 3) Alternative keys
    13·1 answer
  • The base 10 number 18 is equal to which base 16 number?<br><br> 10<br><br> 12<br><br> 14<br><br> 16
    11·1 answer
  • Drag each label to the correct location on the image.
    7·1 answer
  • What do you mean by computer ethics?​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!