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
liubo4ka [24]
2 years ago
5

I need help to fill in a few blanks with this coding homework. did some, but need help on the rest. the assignment is down below

Computers and Technology
1 answer:
EleoNora [17]2 years ago
3 0

Answer:

def main():

# Initialize variables

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.")

print("You guessed " + str(userGuess) + ". The correct number is " + secretNum + " after " + numGuess + " times.")

main()

Explanation:

add a While until userGuess == secretNum than we stop

You might be interested in
Hioo ^U^
AlexFokin [52]

Answer:

Hie ......... . thanks for the points

Have a good day

6 0
3 years ago
After reading passage “the incredible machine” why do you think the article has been titled so?
Vitek1552 [10]
I haven’t read it, but just by the title it was probably talking about an incredible machine that was new to people.
7 0
3 years ago
What are the set of rules to move data from one computer to another?
ss7ja [257]
I don't believe that there are rules.
Hope I helped,
 Ms. Weasley
4 0
3 years ago
Both IT professionals and governments must apply ethical principles to certify that emerging technologies are to society.
Katarina [22]
The answer is C fair………………………
6 0
2 years ago
A user has been complaining that their wireless connection has been connecting and disconnecting too frequently. what command co
riadik2000 [5.3K]
<span>A user has been complaining that their wireless connection has been connecting and disconnecting too frequently. You could use the command </span><span>netsh wlan show wlanreport  to generate a detailed HTML based report for analysis of the wireless connection on their computer in the past.
</span>
<span><span>The netsh tool, is used to generate an interactive <span>WLAN Report</span></span>.
</span>

4 0
3 years ago
Other questions:
  • What is cloud storage?​
    11·1 answer
  • A type of font that has a decorative tail is A.Serif font B. Sans serif font C. Bubbles font D. Reading font
    7·1 answer
  • Using ______, a smartphone can connect to an automobile audio/control system
    6·1 answer
  • Big data: options:
    8·1 answer
  • Explain the use of keyboard shortcuts and key combinations. You are at the tenth page of a 20-page document. You need to make ch
    14·1 answer
  • Use the _____ and _____ features to prevent field columns from showing or to view two nonadjacent field columns for comparison.
    6·1 answer
  • Your long and short term goals (career or job etc)? ANSWER FAST!!!
    6·1 answer
  • How do mass and social media differ
    8·1 answer
  • Create five circles like the Olympic Rings. fill them with the colors given below
    8·1 answer
  • Code used when creating a hyperlink to a specific part of the same page.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!