import getpass, sys

print("Welcome to the Frog quiz!")
print("You will be given three questions")
score = 0

def testing(input, answer, score):
    if input == answer: 
        score = score + 1 
        print("correct!")
        return score
    else:
        print("wrong answer")
        
print("Question 1: How many toes does a poison dart frog have on each foot?")        
score1 = testing(input(), "4", score)
print("How many species of frog are there?")
score2 = testing(input(), "5000", score)
print("Can a frog play the violin?")
score3 = testing(input(), "no", score)

score = score1 + score2 + score3
print(score)
Welcome to the Frog quiz!
You will be given 3 questions
Question 1: How many toes does a poison dart frog have on each foot?
correct!
How many species of frog are there?
wrong answer
Can a frog play the violin?
correct!
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/Users/ekamjotkaire/Desktop/fast-pages/_notebooks/2022-08-29-quiz.ipynb Cell 1 in <cell line: 22>()
     <a href='vscode-notebook-cell:/Users/ekamjotkaire/Desktop/fast-pages/_notebooks/2022-08-29-quiz.ipynb#W0sZmlsZQ%3D%3D?line=18'>19</a> print("Can a frog play the violin?")
     <a href='vscode-notebook-cell:/Users/ekamjotkaire/Desktop/fast-pages/_notebooks/2022-08-29-quiz.ipynb#W0sZmlsZQ%3D%3D?line=19'>20</a> score3 = testing(input(), "no", score)
---> <a href='vscode-notebook-cell:/Users/ekamjotkaire/Desktop/fast-pages/_notebooks/2022-08-29-quiz.ipynb#W0sZmlsZQ%3D%3D?line=21'>22</a> score = score1 + score2 + score3
     <a href='vscode-notebook-cell:/Users/ekamjotkaire/Desktop/fast-pages/_notebooks/2022-08-29-quiz.ipynb#W0sZmlsZQ%3D%3D?line=22'>23</a> print(score)

TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'