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:
Explanation:
The dual of a function means replace AND with OR and replace OR with AND.
XOR gate of A , B is

So, Dual of A XOR B is ( replace AND with OR and OR with AND)
Complement of A XOR B is
(In finding compliment AND becomes OR and OR becomes AND ).
By inter changing the above product of terms
Complement of 
So, Dual of A XOR B = Complement of A XOR B.
Answer:
B. #
Explanation:
Every preprocessing directive must begin with the # character.
For example:
#define : Used to define a macro
#ifndef : Conditional evaluation of macro
#include : Used to include other preprocessor header file as part of the code
As we can see each of the directives begins with the # character. This is a signal to the preprocessor to interpret the subsequent keyword as a directive.
It should be compiled. It won't work if it's not compiled.
Answer:
Im unclear exactly what it is saying but i think its 2