Answer:
D. 41
Explanation:
101001 is in base 2.
To convert 101001 to base 10;
1*2^5+0*2^4+1*2^3+0*2^2+0*2^1+1*2^0
1*32+0*16+1*8+0*4+0*2+1*1
32+0+8+0+0+1
=41
import random
num_rolls = 0
while True:
r1 = random.randint(1, 6)
r2 = random.randint(1, 6)
print("Rolled: " + str(r1) + "," + str(r2))
num_rolls += 1
if r1 == r2 == 1:
break
print("It took you "+str(num_rolls)+" rolls")
I added the working code. You don't appear to be adding to num_rolls at all. I wrote my code in python 3.8. I hope this helps.
Answer:
so people can't get your information and use it to their advantage and because you never know what people could do with that information
Explanation:
A microcomputer is a small device composed of a central CPU with a microprocessor. Microcomputers are also called personal computers (PCs) and they are ultimately easier to transport.
<h3>What is a microcomputer?</h3>
A microcomputer refers to a personal computer, which is similar to an IBM PC device machine.
The term microcomputer was used in the 1970s, nowadays they are called personal computers, and PCs are being increasingly better both in usage and transportability.
The average personal computer has a weight of 20-30 pounds, in the future, it is believed that there will be no need for a personal computer (all data will be in the cloud).
Learn more about personal computers here:
brainly.com/question/4945544
Answer:
false
Explanation:
-exec option is not mandatory for the find command.
find will still list out the identified files even in the absence of -exec option.
For example:
find . -name test -print
will print out files with the name 'test' in the current directory. Note that there is no exec option in this example.
Same holds true for find with no additional options at all.
For example:
find .
will list out all files in the current directory.