# Initialize variables
numGuesses = 0
userGuess = -1
secretNum = 5

name = input("Hello! What is your name?")

# Fill in the missing LOOP here.
# This loop will need run until the player has guessed the secret number.

userGuess = int(input("Guess a number between 1 and 20: "))

numGuesses = numGuesses + 1

if (userGuess < secretNum):
print("You guessed " + str(userGuess) + ". Too low.")

if (userGuess > secretNum):
print("You guessed " + str(userGuess) + ". Too high.")

# Fill in missing PRINT statement here.
# Print a single message telling the player:
# That he/she guessed the secret number
# What the secret number was
# How many guesses it took

Fill in the # lines in order to complete the code

Answers

Answer 1

numGuesses = 0

userGuess = -1

secretNum = 5

name = input("Hello! What is your name?")

while userGuess != secretNum:

   userGuess = int(input("Guess a number between 1 and 20: "))

   numGuesses = numGuesses + 1

   if (userGuess < secretNum):

       print("You guessed " + str(userGuess) + ". Too low.")

   if (userGuess > secretNum):

       print("You guessed " + str(userGuess) + ". Too high.")

   if(userGuess == secretNum):

       print("You guessed " + str(secretNum)+ ". Corret! "+"It took you " + str(numGuesses)+ " guesses.")

Answer 2

Answer:

numGuesses = 0

userGuess = -1

secretNum = 5

name = input("Hello! What is your name?")

while userGuess != secretNum:

  userGuess = int(input("Guess a number between 1 and 20: "))

  numGuesses = numGuesses + 1

  if (userGuess < secretNum):

      print("You guessed " + str(userGuess) + ". Too low.")

  if (userGuess > secretNum):

      print("You guessed " + str(userGuess) + ". Too high.")

  if(userGuess == secretNum):

      print("You guessed " + str(secretNum)+ ". Corret! "+"It took you " + str(numGuesses)+ " guesses.")


Related Questions

The largest size heading tag-often used to create the main heading of a webpage is

Answers

Answer:

<h1> tag is the correct answer to the given question .

Explanation:

The heading tag is used in the HTML for giving the heading in the webpage there are 6 heading tag is used in the HTML which are used in the different different purpose .

The <h1> tag is used for the  Largest size heading in the main heading of the webpage whereas the <h6> is used for least size heading in the web page.

Following are the example of <h1> tag

<html>

<head> </head>

<body>

<h1 align="center"> Brainly </h1>

<h6> subject </h6>  

</body>

</html>

Output:

Following are the attachment of output.

what is the primary reason for setting a closing date in quickbooks?

Answers

I believe it is to not allow users to delete,edit or add transactions.

Bookmarks can be added to a browser to quickly find favorite websites

Answers

Yea you can also make a folder to keep them in

Answer:

Yes.

Explanation:

Bookmarks can be added to a browser to quickly find favorite websites.

Does your output depend on what you sense? computer science​

Answers

Yes it does

That’s kind of common sense ;-;

The 2 main parts of Aerospace Engineering are aeronautical and astronautical

Answers

Answer:

that is ture

Explanation:

Aerospace engineering is the primary field of engineering concerned with the development of aircraft and spacecraft. It has two major and overlapping branches: aeronautical engineering and astronautical engineering.

HELP PLEASE I WILL GIVE YOU 15 POINTS!

1. List two news stories that are directed to two different target audiences.

2. What news stories are important in your life? What stories do you pay most attention to? Write down at least six stories, and make sure you describe the stories and why they are relevant to you.

Answers

Answer:

look up some stories if you can like about dogs or something and then write why you like animals then write about how much you need to know about dogs or cats to be a good dog/cat owner

Explanation:

I already gave you the two stories didn't I in your last questions?

What's a good drawing tablet?

Answers

Answer:

Wacom Intuos S

Explanation:

If you're looking for a good tablet that isn't too expensive the Wacom Intuos S is a great starter, I personally use it and really enjoy it. It doesn't have a graphic screen. If you're looking for one with a graphic screen get the Wacom Cintiq 22, It's expensive but great quality. Most tablets with a graphic screen are this expensive though. But if you REALLY want one with a graphic screen that isn't TOO expensive I recommend the HUION Kamvas pro 12.

Hope I could help!

Answer:

My recommended one is

Xp-Pen Artist 12 Drawing tablet

Explanation:

A good drawing tablet is a tablet where you can draw high quality drawings If you are an artist.

Four friends bought three same-sized pizzas for dinner.
Kesha ate 3/4 of a pizza.
Samuel ate 1/2 of a pizza.
Jaxson ate 5/8 of a pizza.
Luann ate the rest of the pizza.
How much pizza did Luann eat?​

Answers

Answer:

9/8 of a pizza

Explanation:

3/4 -> 6/8

1/2 -> 4/8

5/8 -> 5/8

We can now add all of these:

6/8 + 4/8 + 5/8 = 15/8

The total amount of pizza is 24/8 because there are 3 pizzas.

24/8 - 15/8 = 9/8

Which of the following is an accurate explanation of what this paragraph means?
Radiation from the sun is the main cause of global warming.
(6)
Radiation is the heat that the sun releases onto the surface of the earth.
Solar panels get very hot because they are absorbing radiation from the sun.
ee
Solar panels can make the carth cooler because they absorb heat instead of the earth.​

Answers

Answer:

The answer is: Radiation is the heat from the sun relaeased onto the surface of the Earth.

Explanation:

Question 3 of 10
What is an effective way of making new friends and connecting with people who share the
same interests as you?
Asking the writing center on campus for help with an article for the school
paper.
Joining a new club.
Sharing your thoughts on social media.
All the above

Answers

Answer:

option all of the above

hope helps

mark as brainlist plzz

The effective way of making new friends and connecting with people who share the same interests as you can be asking the writing center on campus for help with an article for the school paper. Joining a new club and sharing your thoughts on social media. The correct option is 4.

What is social health?

The social and economic factors that affect how individuals and groups differ in their levels of health are known as social determinants of health.

The relationships we have and our interactions with others are considered aspects of social wellbeing.

The relationships can be a source of comfort during trying times. Building wholesome, nurturing, and supporting relationships as well as creating a sincere connection with those around are both essential components of social wellness.

By requesting the campus writing center for assistance with an article for the school paper, you can meet others who share your interests and form new friendships. registering for a new club and posting on social media.

Thus, the correct option is 4.

For more details regarding social health, visit:

https://brainly.com/question/17799234

#SPJ2

Your question seems incomplete, the probable complete question is:

What is an effective way of making new friends and connecting with people who share the

same interests as you?

Asking the writing center on campus for help with an article for the school paper.Joining a new club.Sharing your thoughts on social media.All the above

What is the difference between primary memory and the secondary memory?

Answers

Answer:

Computer memory is categorized into primary and secondary memory. While primary memory is the main memory of the computer which is used to store data or information temporarily, whereas secondary memory refers to external storage devices that are used to store data or information permanently.

Explanation:

Answer:

Explanation:

Difference between Primary Memory and Secondary Memory Primary is when a computer which can be directly accessed by the central processing unit, where as secondary memory refers to the external storage

A product/process is referred to as a key Technology during which of the
following phases of the technology development cycle?
A. Growth Phase
B. Saturated Phase
C. Emerging Phase
D. Mature Phase

Answers

The correct answer is D. Mature Phase

Explanation:

Most products go through four different phases, this includes the emerging phase, the growing phase, the mature phase, and the decline phase. In each of these phases, the product has a different impact on the general market.

In the case of the mature phase, this occurs once the product is established in the market, which means the product is known by many people and is considered as key or necessary. For example, nowadays smartphones are in the mature phase because these are an important part of the market or are key. Moreover, this phase occurs after the product grows in the market, and before it declines. Thus, a product is a key technology during the mature phase.

Answer: D. Mature Phase

need some hep with this question​

Answers

Answer:

The correct answer us letter A.

Which of these is an effective color scheme?

a) red text on red background
b) red text on black background
c) yellow text on black background
d) yellow text on white background

Answers

Answer:

Yellow on white.

Explanation:

Not to bright, soft, and easy to see.

♡ The Question ♡      

-Which of these is an effective color scheme?  

* ୨୧ ┈┈┈┈┈┈┈┈┈┈┈┈ ୨୧*        

♡ The Answer ♡      

-Yellow text on black background.

*୨୧ ┈┈┈┈┈┈┈┈┈┈┈┈ ୨୧*        

♡ The Explanation/Step-By-Step ♡    

-Yellow, one of the primary colors, including a very bright color, would be visible/open to see on a darker shade background such as black. Therefore, this would be your correct answer.

*୨୧ ┈┈┈┈┈┈┈┈┈┈┈┈ ୨୧*        

♡ Tips ♡        

-No tips provided!

Lisa wants to deliver a PowerPoint presentation by only showing certain slides that she has created. Which option should she use?

From Beginning
Custom Slide Show
From Current Slide
Present Online

Answers

Answer:

custom slide show

Explanation:

she only wants to show certain slides

Think about a time when someone made a biased judgment about you or acted unfairly toward you because of your age, skin color, clothes you were wearing, gender, the way you speak, where you live, how much money your family has, or some other reason.
Why do you think those assumptions were made about you?
How did that experience make you feel?
How do you think you should have been treated in that situation?

Answers

I feel like people are judge mental on their self so they do it to other people to make them feel better and it really hurts because you don’t know what that other person been through I feel like you should be treated fairly in that situation.

need some help with this question​

Answers

Answer:

B, Backlight.

how do i end my current plan that i never signed up for, the basic one it charged me $24

Answers

Answer:

...

Explanation:

I think you need to call the brainly HQ other then that i don't know.

Go into setting then go into payment and end all accounts then delete and redownload the app same thing happened to me once

Police officers conducting traffic stops on minority drivers more than non-minority drivers is an example of what?


Criminal profiling

False positives

Cultural bias

Probable cause

Answers

Answer:

Cultural bias

Explanation:

Certain verifiable studies have been made across the United States of America on traffic stops, which revealed significant cases of cultural/racial bias. Black people were 20 percent more likely to be stopped and searched by the police than white people.  

Within a six-year period, starting from 2011, researchers studied over 100 million traffic stops cases which were carried out by twenty-one state patrol agencies.

Answer:

Cultural bias

Explanation:

Which of the following is not expected of employees' oral communication skills in the workplace? Communicate clearly Use appropriate language Communicate within the laws and regulations of the organization Be able to write well

Answers

Answer:

The skill that is not expected of employees' oral communication skills in the workplace is:

Be able to write well

Explanation:

The reason behind this answer is: we are analyzing oral communication skills. Writing is not in oral communication skills. Therefore it is not expected as an employee oral communication skill in the workplace. Also, Communicate clearly is expected in the workplace, use appropriate language is expected in the workplace as formality is desired, and finally communicating under the laws and regulations of the organization is also expected.

What is not expected of employees' oral communication skills in the workplace is Be able to write well.

According to this question, we are to discuss about employees' oral communication skills in the workplace.

As a result of this we can see that in the workplace, employee should be able to communicate clearly and Use appropriate language Communicate within the laws and regulations of the organization.

Learn more about communication skills at;

https://brainly.com/question/20347444

By using your own data, search engines and other sites try to make your web
experience more personalized. However, by doing this, certain information is being
hidden from you. Which of the following terms is used to describe the virtual
environment a person ends up in when sites choose to show them only certain,
customized information?
A)A relational table
B)A clustered circle
C)A filter bubble
D)An indexed environment

Answers

Answer: Answer D, An indexed environment.

Select the pieces of information that are added on to data to get it where it is going.
Ethernet
bit
frame
sender and receiver port
IP address
segment
MAC address

Answers

Answer:

IP address and MAC address

Explanation: The IP address tells the server what network to send the information to, the MAC address tells the local network what device to send it to.

Answer:

IP Ethernet s&r port MAC

Explanation:

Hope this helped

Provide an example of a time in your personal or work life when you used the household measuring system and measured out an exact amount of liquids or solids.

Answers

Answer:

Cooking

Explanation:

Cooking and baking would be the easiest answer to come up with. It's the most practical thing that you would be measuring liquids and solids for. For example, you should measure how much water or flour you use when making food. Try and think of a time you may have used a measuring cup of some sort.

An example of using household measuring system could be; measuring out 1/4 cup of flour for a recipe.

What are household measuring system?

The household measuring system is a system of measurement used for cooking and baking. It typically includes units such as cups, tablespoons, teaspoons, and fluid ounces to measure liquids and units such as cups, ounces, and pounds to measure solids.

This system is commonly used in the United States and it is based on the imperial system of measurement. Examples of using household measuring system are: measuring out 1/4 cup of sugar for a cake recipe, measuring out 2 tablespoons of butter for cookies, measuring out 1/2 cup of milk for a pancake mix, measuring out 1 teaspoon of salt for a soup recipe.

Learn more about household measuring system, here:

https://brainly.com/question/28433309

#SPJ2

Identify the equation that translates Y = In(x) five units down.​

Answers

Y=In(x)-5
hopefully it’s right :)

Question 7 of 10
How can managing your personal life help with reaching your Epal
Eating right exercising and getting enough sleep can reduce stress and help
you study
Managing your personal contacts will help you graduate
Being involved in sports will increase academic performance,
Pulling all nighters helps you prepare for tests when you have a busy schedule

Answers

Answer:

Eating right exercising and getting enough sleep can reduce stress and help you study.

Explanation:

I just did it and I got it right.

The crop tool is used for _______, ___________ and ________.
a. Resizing, trimming and straightening
b. Cutting, separating, and deleting.
c. Shaping, moving, and sizing.
d. Resizing, separating and removing

Answers

i dont konow just want the pionts

Explanation:

MMS (in the context of mobile phones) stands for "_______" messaging service.

Answers

Answer:

Multimedia messaging service

Explanation:

Which of the following describes an executive information system (EIS)?
A. Uses the Internet only for data analysis
B. Analyzes internal and external data sources
C. Reveals results broken down into time periods
D. Provides business performance reports

Answers

i think the answer is b

hope this helps :)

The executive information system (EIS) is used to Analyzes internal and external data sources.

What is an EIS in information management?

An executive information system (EIS) is known to be a toll that helps to give important information, that is obtained  from internal and external sources.

Therefore, one can say that The executive information system (EIS) is used to Analyzes internal and external data sources to executives.

Learn more about  data sources from

https://brainly.com/question/26711803

#SPJ2

*URGENT!!* *100 POINTS!**9 questions for 100 points*

You are the operator of a small golf and ski shop (Sam’s Golf & Ski) that generates a profit of $70,000 on sales of $255,000 per year. You have been very successful with your 3-year-old business and have met all of your obligations on a timely basis. Your ultimate goal has been to rename your business Sam’s Sports Emporium (SSE) and carry most of the popular recreational sports items at multiple outlets within your state. You have been working on a business plan to present to the bank in order to secure funding and make your dream a reality. As part of your business plan, you need to address the information needs of your proposed business.

2.) identify the IS components needed for SSE. When you explain them, use terms SSE would use.
Hint: What types of communication technology, software, hardware, data
procedures, and people?

3.) how would perform an Industry Analysis on the sporting goods industry as a whole?
Hint: Use Porter’s Five Forces to guide you.

4.) what competitive strategy you would use for SSE based on the Industry Analysis you write wrote about in #2.

5.)discuss systems needed for SSE.
Hint: EES for accounting, etc.

6.) identify the databases needed for SSE and explain why they are needed.
Hint: What type of DBMS? What kind of information would you keep in your
database?

7.)identifying the methodology to use for developing the system(s) for SSE and justify your selection.
Hint: Prototyping

8.) what type of system (functional or cross-functional) is needed and explain.
Hint: Supply chain management, sales transactions updates, etc.

9.)that states what your company ethics policy is.
Hint: What would you include in your company’s ethics policy?





Answers

Answer:last day of school

Explanation:

sorry, im looking for it as well

How do memory and storage interact

Answers

Memory and storage are practically the same thing but for different sources. They both hold something and when you want or need to recall it, it is there for use.

Answer:storage is the component of computer that allow you to store and access data on a long term basis

Memory refers to the location of short term datw

Explanation:

Other Questions
Arrange the tiles to show the sequence of events in the development of the theory of evolution.Scientists examined evolutionaryrelationships using DNA sequencing.Scientists collected fossils thatshowed species changing over time.Mendel proposed laws forhow traits are inherited.Darwin collected specimensfrom around the worldduring the HMS Beagle voyage.Darwin proposed the theory ofevolution by natural selection. List the powers and immunities of the Texas Legislative Branch A group of friends is addressing wedding invitations. Casey can address 20 envelopes in one hour, Anne can address 44 envelopes in two hours, and Paula can address 68 envelopes in three hours. About how long will it take them to address 400 envelopes? Why did the Aztecs and the Inca suffer more from smallpox than the Spanish did? There different ways to think about 1 3/8- 1/1/8. Select three ways to find it What is the height of the pole?topO 12 ftO 125 ftO 18 ftO 182 ft Tom mentions a book he's read, about the Aryan race. From the conversation that follows, we learn that Tom is ____________1. A racist 2. A lone shark 3. A wife beater 4. A bootlegger 1. The ____________________ is the branch of government that interprets the laws. Which of the following best explains why the New York State Court of Appeals rejected the Sugary Drinks Portion Cap Rule? 0:00 10:18What time is it?5:155:305:4515:00in spanish Solve y = x + 6 for x.A. x = y + 6B. x = -y + 6C. x = y - 6D. x = -y - 6 If y= 1/4x and x = -12, find y. okay who knows there stuff good ? i failed geometry last year and were back at it plz helppp :What were the main factors that made the U.S. the most productive & industrialized nation in the world by 1900?Items you may wish to discuss in your answer:flush toilets, sewing machines, Bessemer process, Alexander Graham Bell & Thomas Edison, Railroad industry, Jay Gould, Commodore Cornelius Vanderbilt, Andrew Carnegie, John D. Rockefeller, J. Piedmont Morgan, monopoly, horizontal & vertical integration, trust & holding company, Scientific management & Taylorism Hunter decides to invest $840,000 in a period annuity that earns a 4.2% APR,compounded monthly, for a period of 30 years. How much money will Hunterbe paid each month? What do you think the deeper meaning or reflection on society as a whole, is being made about people today through works like Cattelan's? What is the purpose of the thesis statement in a research paper?A. It presents the subject of the paper.B.It states the approach taken with the paper's topic.C.It provides a summary of the key points in the paper. What is the area of triangle DEF? Triangle D E F has a base of 42 centimeters and a height of 28 centimeters. The other sides have lengths of 35 centimeters. A brand of uncooked spaghetti comes in a box that is a rectangular prism with the length of 8 inches width of 2 inches and the height of 1 1/2 inches what is the surface area A biased coin is tossed 40 times. Out of those 40 tosses, the coin landed on heads 12 times.Find the probability of the coin landing on tails.