repl.it
@johnstev111/

Lets code

Python

No description

fork
loading
Files
  • main.py
  • Test
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
money = 0

def play():
  name = input('Lets play a little quiz! What is your name: ')
  print ('Alright', name, 'Lets go!')

  quiz()
def questions(chat, question, answer, guessAward, money):
  money = guessAward
  qst = input(question)
  if qst == answer:
    print('Awesome! on to the next one, you got $', money)
    play()
  else:
    print('Better luck next time!')


def quiz():
  questions('On to the first one for $100', 'Who won 2018 Football World Cup:\n A) France\n B) Croatia\n C)Germany', 'A', 100, money)

play()