The answer to this puzzle can be anything but most commonly it is Trees. Pines, Redwood, Sequoias, any kind that is tall and straight. Or it can be something like poles, or even humans.
Answer:
import random
score = 0
for i in range(5):
num1 = random.randint(1, 100)
num2 = random.randint(1, 100)
prompt = "What is " + str(num1) + "+" + str(num2) + "?"
answer = int(input(prompt))
result = (num1, num2)
if answer == result:
print("Well done!")
score += 1
else:
print("incorrect")
print("Your score was", score)
Explanation:
Your error is on <em>line 7</em>, where you are providing multiple arguments to the input function, instead of 1.
One way to solve this is to create a variable prompt and concatenate all strings and variables within that variable to use for the input.
If you mean speakers. You should remove them or if you mean the speakers in the PC. Perhaps you put the headphones in the wrong one. Theres usually too one in the front and the other one in the back of the desktop.
Hope this helps.
Regards. Shaggy
Enjoy your music!
Solution :
We need to write a function named ''
_
". The program takes a string and then returns a dictionary which maps the case insensitive word.
def
_
(s):
=
().split()
= {}
for
in words:
if
in
.keys():
[x] += 1
else:
[x] = 1
return 