How to divide one number to another multiple times, until it will be about 0?
For example 128 / 2, then 64 / 2, then 32/2, and so on.
Please help me, how can I write the cycle?
You can do something like this:
while num != 0:
In the num, you could put any num, e.g, num=128
r you could ask the User for an input
To see the output use a print(num) statement
If you only have one reference to ...READ MORE
You can find the explanation and implementation ...READ MORE
The following code snippet might solve your ...READ MORE
You could use assign with a dict of ...READ MORE
You can also use the random library's ...READ MORE
colors = ['red', 'green', ...READ MORE
can you give an example using a ...READ MORE
You can simply the built-in function in ...READ MORE
Try using os.system:
execfile is different because it is ...READ MORE
You can go through this:
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.