What kind of loop should be used in a game where the user is guessing a secret code and the message"guess again" appears until the user guesses correctly?

Answers

Answer 1

Answer:

While loop

Explanation:

It should be noted that the number of times which the computer will ask the user to take a guess is not known.

When we have a condition like this, the while loop (or in some programs; the do-while loop) is to be used.

To further back my point, see the following program in python.

secret_code = 1234

user_guess = int(input("Take a guess: "))

while user_guess != secret_code:

    user_guess = int(input("guess again: "))

print("You guessed right")

The above program will keep asking the user to take a guess until the user enters 1234.

This may or may not be possible with a for loop.


Related Questions

Using this feature keeps the message thread intact.


Reply

Opt out

New message

Signature

Answers

Answer:

Option 1: Reply is the correct answer.

Explanation:

Emails are used for business and official communications.

Let us look at the options one by one

Reply:

The reply option opens the email editing window. When the reply option is used the emails then are arranged in the form of a message thread. So the reply option keeps the message thread intact.

Hence,

Option 1: Reply is the correct answer.

Explaining AutoCorrect
How is the AutoCorrect feature useful in Outlook 2016? Check all that apply.
It checks for common typing errors.
It can automatically fix the error while you are typing.
It suggests email recipients that might be interested in your message.
It underlines words that need spelling and grammar corrections.
It ensures that you are emailing the correct recipients.

Answers

Answer are: 1st one, 2nd one, 4th one

It checks for common typing errors.
It can automatically fix the error while you are typing.
It underlines words that need spelling and grammar corrections.

Answer:

1, 2 and 4

Explanation:

So my teacher asked us to predict who would win in a death match, and we could choose the two characters, so Alastor from Hazbin Hotel vs Blackhat from villinous, who would win?

Answers

Answer:

I think alastor from Hazbin Hotel.

Answer:

alastor

Explanation:

i mean alastor is a demon and blackhat we dont know if he is a demon or not but i mean alastor would win he took down a flying ship that was trying to kill them

Give two examples of search​

Answers

Answer:

goo.gle and ya.hoo

Explanation:

Web browser, book looking up

Question # 1 Multiple Select Which of the following shows the assignment of a string to a variable? Select 3 options. answer = "23" answer = (23) answer = '23' answer 23 answer = input("How old are you?") ​

Answers

Answer:

answer = input("How old are you?")

Explanation:

Answer is a variable The Input function takes a string

Answer:

answer = input("How old are you? ")answer = '23'answer = "23"

Explanation: Correct on Edg 2020/2021.

what is the binary for O?​

Answers

Answer:

01001111

Explanation:

Answer:

0000 0000

Explanation:

define input hardware​

Answers

It’s a piece of hardware (you can touch it) that changes something on the screen. Examples are a keyboard putting letters on the screen or a mouse moving the cursor

Any device that uses light to read and write information.

A. Optical Drive

B. Peripheral Device

C. Laser Device

D. Optical Device

Answers

I think Optical Drive does.

Answer:

the answer is optical drive

Explanation:

hope that helps thanx optical drive uses reflected light to read data.

Drop a paper of A-4 size and a
piece of wood/plastic about 2-3
inches long, from a height more
than 10 feet. Note the time for both
to hit the ground. Now repeat the
experiment by folding the paper
once, twice, thrice... (as many
time as you can). Why every time
the travel time reduces for paper
and remains the same for
wooden/plastic piece. Does the
paper at any stage hit ground
before wooden/plastic piece? If
yes,

Answers

Folding the paper reduces the surface area/volume. Travel time reduces due to less friction.

The wooden or plastic piece never changes its amount of drag/friction in the atmosphere.

If the paper is folded/compressed small enough, such that it’s friction is less than the wood or plastic then yes it would fall faster.

In a perfect vacuum, there is no friction to factor in, thus both fall at same speed.

Suppose you wanted to quickly take a photograph of a dew drop on a rose petal before it rolled off. Which camera mode would be most

appropriate?

A: landscape

B: L

C: macro

D: M

Answers

It would be C

Or search up the difference of those camera modes to see which one is better but I’m going with C

Answer:

The answer is M

Explanation:

EDGE 2022

This is your data.
A= [5, 10, 15]
B = [2, 4, 6]
C = ['dog','cat', 'bird']
You can implement an array of this data with

Answers

Answer:

This is your data.

A =  [5, 10, 15]

B =  [2, 4, 6]

C =  ['dog','cat', 'bird']

You can implement an array of this data with  

either by using lists or by using the array module

ALSO

This is your code.

>>> A = [ 'dog', 'red']

>>> B = [ 'cat', 'blue']

>>> C = [ 'fish', 'green']

You can implement an array of this data by using  

by using lists but not by using the array module

Explanation:

Edge2020

A= [5, 10, 15],  B = [2, 4, 6], C = ['dog','cat', 'bird']. You can implement an array of this data either by using lists or by using the array module.

What is an Array?

An array is a type of data structure used in computer science that holds a set of elements that are all uniquely recognized by at least one array index or key. Each element of an array is recorded such that a mathematical formula may be used to determine its location from its index tuple.

Indexed arrays, multidimensional arrays, and associative arrays are the three types of arrays.

A procedure called indexing selects a subset of values from an array. A value's position inside an array is indicated by its index. The location of the value in an array differs from the value itself.

To read more about Array, refer to - https://brainly.com/question/14375939

#SPJ2

You created a two-dimensional array with the following code.

>>> A = [21, 'dog', 'red']
>>> B = [35, 'cat', 'blue']
>>> C = [12, 'fish', 'green']
>>> E = [A, B, C]
How do you refer to 'cat'?

E[1, 2)

E[1,2]

E[1][2]

E[1,2]

Answers

Explanation:

My answer is E[1][1]

but I don't see it here

Answer:

E[1][2] that is correct I just took t

describe a tsunami when it is far from the coast

Answers

I hope it is helpful for you ......

Mark me as Brainliest ......

Tsunamis are marine phenomena, created by the abrupt displacement of large amounts of water into an aquatic formation. Tsunamis manifest as waves, which travel in the deep waters of the oceans at an average speed of 756 kilometers per hour.

While in deep water the tsunami, due to its characteristics there, is not considered a serious danger to the floating structures, reaching the shores has particularly devastating consequences.

Learn more in https://brainly.com/question/15964056

Do you need a internet browser to go to the intrnet?​

Answers

Answer:

No you do not need a interent browzer to get to the internet.

Explanation:

Not sure but I don’t think so

Which is an email protocol that retrieves email without deleting the email and its attachments from the server?
Simple Mail Transfer Protocol (SMTP)

Internet Message Access Protocol (IMAP)

Post Office Protocol version 3 (POP 3)

Simple Network Management Protocol (SNMP)

Answers

Answer:

Internet Message Access Protocol (IMAP)

Explanation:

The "Internet Message Access Protocol" or IMAP was created by Mark Crispin at the Stanford Knowledge Systems Laboratory. It allows a person to access his email from his local server. In comparison to the Post Office Protocol Version 3 (POP 3), which deletes the emails once they are downloaded, the IMAP allows the contents to be saved on the server. The email will only be deleted if the user intends to do so.

Answer:

It is Pop 3 not IMAP

Explanation:

Correct on edg 2022

please help me
...
.... ​

Answers

Answer:

formal information searches

Explanation:

Answer:

informal information source

hope it will help if it helps please ask me in comment

Which technology will a business use to figure out who accessed confidential files on a company's computer system

Answers

Answer:

insaj cdsjl ljhwbalfhb

Explanation:

Explaining AutoCorrect
How is the AutoCorrect feature useful in Outlook 2016? Check all that apply.
It checks for common typing errors.
It can automatically fix the error while you are typing.
It suggests email recipients that might be interested in your message.
It underlines words that need spelling and grammar corrections.
It ensures that you are emailing the correct recipients.

Answers

Answer:

1.

2.

4.

Explanation:

Had the same question

In a PC, which of the following components stores the BIOS

A. CPU
B. RAM
C. ROM
D. Hard drive

Answers

I think it’s rom because rom chip is on the PC mother chip

How much data can be transmitted with a digital signal?

Answers

Answer:

two possible

Explanation:

In most digital circuits, the signal can have two possible valid values; this is called a binary signal or logic signal. They are represented by two voltage bands: one near a reference value (typically termed as ground or zero volts), and the other a value near the supply voltage

Which of the following is a palette of colors, fonts and special effects which complement one another?
O Placeholders
O Theme
O Background
Slide Masters

Answers

Answer:

Theme

Explanation:

Match the example with the type of collection.

{'casa': 'house'}


[3, 5]


(3, 5, 'dog')

Answers

Answer: First is a dictionary, second is a list, and third is a tuple

Explanation:

a man takes 30 step to cover 18 metre l,how many step he will needed to cover 3003m distance​

Answers

he will need to take 5,004 steps to cover 3003m distance
3003/18=166.8
166.8 x 30=5004
Answer is 5004

I need to calculate the % of Grand Total on Microsoft Excel, but can't for the life of me remember how to do that. Help would be greatly appreciated.

PS: Reposting my question because the answers I got previously were both only made for points, not to help in any way. :(

Answers

Answer:

You need to first use the Sum function to add up all the costs of September.

Then divide each September cost by the grand total that you got. After that format the last column to be percentages.

Look at the attached file for the formulas used.

How to unblock a website on a school computer? ASAP who's ever works will get Brainliest and will get a follow.

Answers

Answer:

You can't unblock them without admin access to the router. The only way to visit such sites is to find a VPN that is not also blocked by the school.

But you should know, what you are trying to do can get you in trouble if the school's IT department is competent to any extent.

Answer:

login as a teacher into the pc from there you can change the settings of the student acct. because you are the administrator of the pc due to the fact your acct is organized by the school organization such as Lightspeed and other organizations used by the school.

Explanation:

What is the output for the following program? numB = 2 while numB < 15: numB = numB + 5 print(numB) Output:

Answers

The following program is a while loop that will output the following data

7,12,17.

In the first iteration, the variable numB is 2, since 2 is less than 15, the program will run the command

numB = numB+5 and it will print 7

The second iteration is still valid because numB is now 7 and is less than 15, so the program will run the command

numB = numB+5 and it will print 12

The third iteration is still valid because numB is now 12 and is less than 15, so the program will run the command

numB = numB+5 and it will print 17

The fourth iteration is not valid because numB is now 17 and is greater than 15, so the program will not run the command

Learn more:

https://brainly.com/question/19344465

Answer: 7,12,17.

Explanation: got it right on edgen

Software that requires excessive disk space or memory.

A. Malware

B. Excessware

C. Ransomware

D. Bloatware

Answers

The correct answer is D. Bloatware

What might the Internet of Things do in the future?

Answers

The future of IoT has the potential to be limitless. Advances to the industrial internet will be accelerated through increased network agility, integrated artificial intelligence (AI) and the capacity to deploy, automate, orchestrate and secure diverse use cases at hyperscale.

Review the following definition of sustainable construction projects:
Sustainable construction projects demonstrate common sense applications of natural resources throughout the life of the project.
Sustainable projects also take into account the long-term effects on the environment, including how energy and materials are used and
recycled, which should be incorporated into the building itself.
Based on this definition, which of the following characteristics is not a characteristic of sustainable construction projects?

Energy and material efficiency in construction, operation, and maintenance.

Established technologies that have been in use for several decades

Low environmental impacts over the project's life cycle.

High ratio of renewable energy to fossil energy in construction, operation and maintenance,

Answers

Answer:

Established technologies that have been in use for several decades

Explanation:

Answer:I’m not sure

Explanation:

What is the missing line of code? >>> >>> math.sqrt(16) 4.0 >>> math.ceil(5.20) 6

Answers

Answer:

A math.pow reference

Explanation:

Answer:

from math import ceil

Explanation:

yes

Other Questions
write any one importance of environment education SAS, SSS, ASA, OR there is not enough information to determine congruence. please answer this asap ! Could someone help me with this thank you! Please find X............ Universal Foods issued 12% bonds, dated January 1, with a face amount of $175 million on January 1, 2018. The bonds mature on December 31, 2032 (15 years). The market rate of interest for similar issues was 14%. Interest is paid semiannually on June 30 and December 31. Universal uses the straight-line method.Required: a. Determine the price of the bonds at January 1, 2018. b. Prepare the journal entry to record their issuance by Universal Foods on January 1, 2018, interest on June 30, 2018 and interest on December 31, 2025. Which of the following is true about the electron configurations of the noble gases? A) The highest occupied s and p shells are completely filled.B) The highest occupied s and p shells are partially filled. C) The electrons with the highest energy are in a d sublevel. D) The electrons with the highest energy are in an f sublevel. Why do you need to be able to determine the gender and number of a noun in Spanish? 1/3 divided by 7 7/3A 7/3B 21C 1/21D 2/21 Has 256 and 81 already been squared?8th grade mathPlease answer ASAP (i'm being timed) On Thursday, 14 out of 20 cookies sold at a bakery were Chocolate Chip. What percent of the cookies sold at the bakery were Chocolate chip? Which of the following expression(s) are fourth-degree trinomials? Select all that apply.A. 3xy + 5x3y + 6yAB. 6y + 5x3 + 1C. 5xy - 5x?y2 + 7D. 3y2 + 3x3y2 inverse operations to solve the equation.2/3(z)=(-2) Weak hydrogen bonds between the nitrogenous base pairs hold the two strands of DNA together. Why are the strands held together by weak hydrogen bonds instead of covalent bonds The aquarium has a scale model of a great white shark for sale in their gift shop. If the scale of the model is 2 in. : 7 ft, what is the actual length of the shark if the shark is 4in? What is the constant in the expression -18 - 3a A Cinema has 240 seats. 144 seats were sold for the current movie. What percent of seats are empty? Ms. Tompkins had an amount of money in the bank. After she deposited $100, she had at least $550 in the bank. how much money did Ms. Tompkins have in the bank originally?i need explanation pls , ty A king owned land outside of his castle he has partitioned the land to give as gifts to his 5 sons what fraction of land did the king give to each of his sons Please help!!!!Which of the following first began in the 1980's and has since become one of the more dominant forms of personal communication?Acable Internet connectionBhard line phone servicemass market advertisingDthe mobile phone What is a Metamorphic Rock?rock that forms when existing rock changes to a new rock because of heat and pressurerock that forms by the process of compaction and cementation of sedimentsrock that forms when melted rock (magma, lava) cools and hardenspls help