Answer:
Unity
Explanation:
People like the unity engine to make basic 3d games. It's open and free so it lets you use or create your own assets to create 3d models for your game.
Cheers.
def power_of_2(p):
if p == 2:
return True
elif p < 2:
return False
return power_of_2(p/2)
print(power_of_2(32))
The function keeps dividing the number by 2 until it is equal to 2 or the number ends up being less than 2. If at some point the number is equal to 2, it is a power of 2 otherwise it's not a power of 2.
Answer:
def calculate_score(setss):
num1, num2, num3= setss
if num1 >= 0 and num1 <=10 and num2>= 0 and num2<=10 and num3>= 0 and num3<=10:
print(num1+ num2+num3)
else:
print("Out of range")
Explanation:
<em>I've added the full source code as an attachment, where I used comments as explanation</em>