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
jeka57 [31]
3 years ago
7

Write a while loop that repeats while user_num ≥ 1. In each loop iteration, divide user_num by 2, then print user_num.

Computers and Technology
1 answer:
olya-2409 [2.1K]3 years ago
3 0

The function user_num repeats in python. That can be written as follows:

# Reading user number and enter the value.

user_num = int(input("Enter a number: "))

#use the while loops for condition if user_num is ≥ 1

While user_num >= 1:

#dividing the user_num by 2 and note down the result as user_num

user_ num = user_num / 2

#Now, print user_num

print(user_num)

In this, the while loop condition works with 2 conditions:

The condition runs the division when the value of user_num is greater than or equal to 1. When the value of user_num is less than 1, then the loop terminates.

learn more about python here: brainly.com/question/26497128

#SPJ10

You might be interested in
What can help prevent issues related to downloading content from the internet
Natasha_Volkova [10]
The best step to take is to have some kind of anti-malware/spyware software. Hope this helps you!


-Belle
8 0
3 years ago
Which of these has led to the evolution of mobile marketing?
Nana76 [90]
D. using cell phones in a work place. when cell phones came out with apps and games people started paying more attention to the social media apps and their games then their own job, hope this helps :)
5 0
3 years ago
What is ment by creative middle way solution
SOVA2 [1]
Looking for a way to resolve conflicting values that comes as close as possible to satisfying all relevant obligation
7 0
3 years ago
List the components of a typical operating system and summarize the role of each in a single phrase.
yanalaym [24]

Answer:

The answer is below

Explanation:

There are several components of operating systems, this may be based on the specific types of Operating systems. However, here are some of the major components.

1. Kernel: it delivers the primary level of control on all the computer peripherals.

2. Process Execution: it serves as a connection between the hardware and application program

3. Interrupt: it provides a dependable technique for the OS to transmit & respond to their surroundings.

4. Memory Management: it regulates main memory and then moves processes between disk & main memory during implementation.

5. Multitasking: it interprets the activities of many independent computer programs on a similar computer system.

6. Networking: it defines the interaction of processor through communication lines

7. Security: it protects the activities of other processes going in the system

8. User Interface: it provides permission for a computer operator to get the information.

3 0
3 years ago
Cyberstalking is an example of a:
babunello [35]

Answer:

A cyber crime

Explanation:

Cyberstalking is a type of cybercrime that uses the internet and technology to harass or stalk a person. It can be considered an extension of cyberbullying and in-person stalking.

7 0
2 years ago
Other questions:
  • What is the last step when supervising detainee operations ssd1?
    14·1 answer
  • What key combination in excel takes you back to the first cell
    7·1 answer
  • âthe first line in a hypertext markup language (html) file is the _____, which is a processing instruction indicating the markup
    9·2 answers
  • Sukant’s professor asks her to take over his online class while he is away because she is an effective digital communicator. Whi
    11·2 answers
  • Write a main method that prompts the user for an integer between 1 & 20 (inclusive). If the user enters an invalid number, p
    8·1 answer
  • The continue statement _________.
    11·1 answer
  • How can a System Administrator quickly determine which user profiles, page layouts, and record types include certain fields? Uni
    14·1 answer
  • Horizontal scaling of a client/server architecture means _____.
    12·1 answer
  • 1.what is a computer?
    5·1 answer
  • What 3 types of data can be entered in a spreadsheet
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!