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
WILL MARK BRAINLIEST THIS IS ALL MY POINTS AND I ALREADY ASKED THIS QUESTION AND IF YOU ANSWER IT AGAING YOU WILL GET MORE POINT
dezoksy [38]

Answer:

A <u>patent</u> is a type of legal protection for which person can apply to protect an invention or a discovery.

Explanation:

Invention  will be the solution of some technical problem or discovery recognizing something first time that is already exist , that can be unique from other solutions. These innovations and discovery are protected to secure the interest of the inventor. A legal term is used to protect the invention or discovery is known as patent.

Whenever some one invent or discover a new thing he will secure his interest through Patent protect.

8 0
3 years ago
When is Hytale coming out?<br><br><br> P.S it might be Mine-craft 2.0<br><br><br> :)
cluponka [151]

No release date has been announced and there's only speculation. My best guess would be maybe Spring or Summer of this year

8 0
4 years ago
In which of the following situations would you want to use GOMS/KLM as an evaluation tool?
Elan Coil [88]

Answer:

B. Amazon's create an account process

Explanation:

The Keystroke-Level Model (KLM) is a cognitive modeling tool which can be used in predicting the performances carried out by human on interface designs. It's the most "practical" of the GOMS methodologies.

This model tends to predict how long it will take for the completion of a routine task by an expert user. There should be no errors.

So, Option B is correct because GOMS/KLM is an evaluation tool which fits in the evaluation of Amazon's create an account process.

7 0
3 years ago
An IT environment with a bastion host, an intrusion prevention system, and workstation antivirus and firewall software is an exa
pochemuha

Answer:

Defense in depth

Explanation:

4 0
4 years ago
Read 2 more answers
The ____ command creates a raw format file that most computer forensics analysis tools can read, which makes it useful for data
slava [35]
The answer is <span>dd.  </span><span>The dd command creates a raw format file that most computer forensics analysis tools can read, which makes it useful for data acquisitions.  </span><span>The </span>dd command copies a file, converting the format of the data in the process, according to the operands (values the operator works on) specified. 
8 0
3 years ago
Other questions:
  • What is the smallest unit of measure on the computer
    14·1 answer
  • What type of socket should be used with an air impact wrench
    12·1 answer
  • What product category does the brand fit into?
    7·1 answer
  • Use the paragraph underneath to answer the four questions.
    7·1 answer
  • Identify a stressor in your life. Conduct an internet search to locate at least two reliable sources of information on effective
    6·1 answer
  • CAD software example​
    5·1 answer
  • X333: countElements Given an array of integers and an integer target, return a count of the number of times the target value occ
    6·1 answer
  • What is output? x=-2 y=-3 print (x*y+2)
    10·1 answer
  • Ethan is afraid that his poor grades will get him kicked out of his university at the end of the semester. He decided to remotel
    10·1 answer
  • Service provided by multiple servers acting in parallel is referred to as: a. Multiple-phase queuing system b. Multiple-channel
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!