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.
In a relational database application, a <u>foreign key</u> is used to link one table with another.
<h3>What is a
foreign key?</h3>
In database management system (DBMS), a foreign key can be defined as a column whose value provides a link between the data that are stored in a table or relational database.
This ultimately implies that, a <u>foreign key</u> is used to link one table with another in a relational database application.
Read more on keys here: brainly.com/question/8131854
#SPJ12
Answer:
Explanation:
yes
but dont forget to call makeBasePlateGreen
maybe you would call it at the end of the program?
by the way you have a typo at the end
make the O lowercase
myBlasePlate.BrickColor = BrickColor.Green()
and then add this to the end
makeBasePlateGreen()
so you call the function and actually use it.
Answer:
1. Classes and objects
2. Inheritance
3. Polymorphism
4. Data hiding/ encapsulation
5. Interfaces.
Explanation:
Classes and objects depict the major component of the OOP (object oriented programming). It explains the object like a ball in a soccer game development.
The inheritance is like the subclass of the object. Data hiding is a stage in oop where the codes or data are hidden from another users.
In the polymorphism stage, the object is given the ability to change to a sub-object, while in the interface stage a function or method signature is defined without implementing it.
Explanation:
Let the size of a large server be L, and
the size of a small server be S.
We are given two scenarios,
2L+4S = 64.............(1)
and
L+3S = 40...............(2)
We solve the equations as follows
2(2)-(1)
2L-2L +6S-4S = 2*40-64
2S = 16
so S=8 ..................(3), size of small server
substitute (3) in (2)
L+3(8) =40
L = 40-24 = 16..............size of large server