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
ASHA 777 [7]
3 years ago
9

Write a while loop that prints userNum divided by 2 (integer division) until reaching 1. Follow each number by a space. Example

output for userNum
Computers and Technology
1 answer:
sashaice [31]3 years ago
8 0

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

while userNum > 1:

   print(userNum, end=" ")

   userNum /= 2

I wrote my code in python 3.8. I think this is what you want but I'm not too sure. I'll change the code if you need me to.

You might be interested in
Assume that isIsosceles is a bool variable, and that the variables isoCount, triangleCount, and polygonCount have all been decla
svet-max [94.6K]

Answer:

if(isIsosceles){

isoCount+=1;

triangleCount+=1;

polygonCount+=1;

}

Explanation:

Here we are checking the condition for variable "isIsosceles" using if condition. if it is true then only if block executed and it will increment mentioned variable values by 1

4 0
4 years ago
Dropdown Complete the sentence. To protect a web-based database, you should apply to any online forms that add data to it. princ
sergey [27]

To protect a web-based database, you should apply <u>principle of least privilege</u> to any online forms that add data to it.

<h3>What is principle of least privilege?</h3>

Principle of least privilege is also referred to as the principle of minimal privilege (least authority) and it can be defined as a security concept that involves giving an end user, software program, or process the minimum levels of access or permissions necessary to perform an action in a database.

In this context, a network administrator should apply the <u>principle </u><u>of least </u><u>privilege</u> to any online forms that add data to a web-based database, in order to protect it.

Read more on least privilege here: brainly.com/question/4365850

3 0
3 years ago
Read 2 more answers
If I were to install python in kali linux on a Acer 11 Chromebook and C730 would I be able to hack python with it since I have n
Mazyrski [523]

Python isnt usually used for hacking because of it not being compiled and being slow etc. But with the correct code and training you should be able to hack with it if thats what you mean.Sorry for giving a low quality answer but your question should be clarified more.

5 0
3 years ago
I think these might be the answers but im not to sure, so am I right? or wrong? please help
mina [271]
Number 1 and 4 are the same? I agree with your answers.
4 0
3 years ago
Read 2 more answers
"Inheritance is the process by which a new class - known as a _________ - is created from another class, called the ____________
Novay_Z [31]

Answer:

child class

parent class

Explanation:

"Inheritance is the process by which a new class - known as a __child class__ - is created from another class, called the __parent class__. "

3 0
3 years ago
Other questions:
  • Which option is a form of an assistive technology?
    7·1 answer
  • Assume that a program consists of integer and floating-point instructions. 60% of the total execution time is spent on floating
    7·1 answer
  • Flesh out the body of the print_seconds function so that it prints the total amount of seconds given the hours, minutes, and sec
    12·1 answer
  • Why do hard drives tend to slow down over time?
    11·2 answers
  • How do you feel about your self as a responsive citizen?​
    7·1 answer
  • How do you recognize the brand name of a drug in the package insert?
    15·1 answer
  • As the demand for goods and services decreases, job growth.
    14·2 answers
  • How many four-digit personal identification numbers (PIN) are possible if the PIN cannot begin or end with a 0 and the PIN must
    6·1 answer
  • (python) Given the formula for conversion from Celsius to Fahrenheit
    10·1 answer
  • What extra dimension do 3D objects have that 2D objects do not have?<br><br> help
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!