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
LenKa [72]
3 years ago
11

# Initialize variables

Computers and Technology
1 answer:
Ne4ueva [31]3 years ago
5 0

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

You might be interested in
Setting up the initial values for the min and max depends on whether n is odd or even. If n is even, compare the first two eleme
sashaice [31]
The answer is the number (2)
3 0
3 years ago
1. a part of a larger whole (the CPU and hard drive, for instance, can be referred to as computer components; so can much smalle
Leokris [45]

Answer:

1. Hardware components.

2. Hard disk drive HDD RPM 7200.

3. Data.

4. Bluetooth.

Explanation:

The computer system is an electronic device, made of software components and hardware components. The software components are the operating system and application software and other software utilities. The hardware components are the input, output, CPU and memory and storage unit.

The storage unit like the hard disk drive HDD and solid state drive SSD, are used to store data permanently. The HDD RPM 7200, stores data at a resolution of the disk per minutes speed RPM of 7200.

Bluetooth is a wireless information technology medium that allows for communication between computers within a maximum distance of 10 meters.

3 0
3 years ago
What is the term that is used for the area of a network that is affected when a device or network service experiences problems?
Zolol [24]
An Outage id the term
6 0
3 years ago
Question 1 (1 point)
faltersainse [42]

Answer:

The internet is completely dangerous.

Explanation:

The answer is false.

8 0
3 years ago
Read 2 more answers
DESCRIBE HOW TO CREATE A CUSTOM QUICK STEP
Vinvika [58]

Answer:

Open Outlook and ensure that the Home tab is the active one. ...

In the Quick Steps action box, click Create New.

In the Edit Quick steps screen, name your Quick Step in the Name text field.

Select an Action to assign your new Quick Step. ...

Next we'll assign it a Shortcut key. ...

Click the Finish button to complete the process.

Explanation:

3 0
3 years ago
Other questions:
  • Which computer tools allow you to communicate with coworkers, family,and friends
    8·1 answer
  • ________ tv uses a digital signal, or series of 0s and 1s, and is much clearer and less prone to interference than analog tv. re
    9·1 answer
  • Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in
    7·1 answer
  • what are the products of light-dependent reactions? Why are they important in lighy independent reactions?​
    6·2 answers
  • _____ is the physical link between a network and a workstation. a. The session layer b. An html address c. An adapter card d. A
    9·2 answers
  • If you type too much text on a PowerPoint slide, the additional text is added to a second slide.
    9·1 answer
  • What is one advantage of top-down programming design?
    8·1 answer
  • Which option lists the correct steps to apply a style?
    5·1 answer
  • Write any two rules for writing algorithm​
    10·1 answer
  • How bridges are built over water
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!