-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfluffy
More file actions
executable file
·44 lines (35 loc) · 1.03 KB
/
fluffy
File metadata and controls
executable file
·44 lines (35 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python3
from utils import ask
import colors as c
import time as t
import random
print(c.clear)
print(c.base3 + 'samuel lucas is not responsible for anything in this quiz.' + c.reset)
print(c.yellow + 'welcome to the quiz game for unicorn hunters.' + c.reset)
def q1():
print(c.red + 'What is the color of the pink fluffy unicorn?')
pink == input('> ').strip().lower()
if pink.startwith("pink"):
return True
else:
return False
def q2():
print(c.red + 'What is the pink fluffy unicorn dancing on?')
rainbows == input('> ').strip().lower()
if rainbows.startwith("rainbows"):
return True
else:
return False
def q3():
print(c.red + 'How do we describe the pink fluffy unicorns fur?')
smiles == input('> ').strip().lower()
if smiles.startwith("smile"):
return True
else:
return False
questions = [q1,q2,q3]
while questions:
question = random.choice(questions)
answer = question()
if answer:
questions.remove(question)