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
zhannawk [14.2K]
3 years ago
5

4.2 code need help plz someone 15 points if u help

Computers and Technology
1 answer:
Korolek [52]3 years ago
8 0

def func():  

 total = 0

 while True:

   pet = input("What pet do you have? ")

   if pet == "rock":

     return

   total += 1

   print("You have a {} with a total of {} pet(s)".format(pet, total))

func()

We wrapped our code in a function so that whenever the user enters rock, we can simply return and exit the function. If you have any other questions, I'll do my best to answer them.

You might be interested in
Lucinda is a network manager. She wants to set up a small office computer network so that it will not be affected at all by elec
Katena32 [7]

Answer:

The network media she should use is;

E. Shielded twisted-pair

Explanation:

A network connection that will not be affected by electrical or electromagnetic interference is a shielded twisted pair cable

Electromagnetic interference, EMI, is an externally originating disturbance that has an impact on electrical circuits through electromagnetic induction, direct conduction, or electrostatic coupling, with the possible effect of circuit degradation or disruption

EMI can be prevented by the use of shielded twisted pair (STP) cabling that provides a barrier that reduces the effect of external electromagnetic fields and transports the current induced to the ground through a grounding wire

4 0
4 years ago
An attribute is a(n)?
steposvetlana [31]

Answer:

hjqnajiwjahhwhaiwnaoai

6 0
3 years ago
Read 2 more answers
What is the only language a microprocessor can process directly but most programmers almost never write programs in this code?
Phantasy [73]
Assembly language, a.k.a. machine language.
6 0
3 years ago
Servers that manage only one type of resource are called ____ servers.
Nataly [62]

Answer: Motherboard i tuink

Explanation:

3 0
3 years ago
A Windows user has been successfully saving documents to the file server all morning. However, the latest attempt resulted in th
Elena L [17]

Answer:

The most likely reason for this error is that the share is currently not available either on just the user’s computer or server-wide. The next step would be to check for the scope of the problem.

5 0
3 years ago
Other questions:
  • Widely spaced isobars often indicate ________.
    14·2 answers
  • Does any body like animal jam
    11·2 answers
  • One of the disadvantages of Audacity is that it has limited technical support since it is a free program.     true or false
    11·2 answers
  • What division monitors the sale and registration of vehicles and vessels within the state?
    15·1 answer
  • The term used for doing business online is referred to as ___.
    12·1 answer
  • Does anyone have game design in connections
    13·1 answer
  • Where do you get your news? Is it owned by a large conglomerate does it matter to you who own your local news outlets? why or wh
    5·1 answer
  • Hey how are yall today?
    12·2 answers
  • Strange<br><br> String<br><br> Striated<br><br> Stop
    13·1 answer
  • (Brainliest!!)<br><br> How do i get rid of a headache?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!