-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfluffy.py
More file actions
39 lines (29 loc) · 926 Bytes
/
fluffy.py
File metadata and controls
39 lines (29 loc) · 926 Bytes
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
import colors as c
import random as r
import random
""" The pink fluffy unicorn quiz module."""
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?')
answer == input('> ').strip().lower()
if answer.startswith("pink"):
return True
else:
return False
def q2():
print(c.red + 'What is the pink fluffy unicorn dancing on?')
answer == input('> ').strip().lower()
if answer.startswith("rainbow"):
return True
else:
return False
def q3():
print(c.red + 'How do we describe the pink fluffy unicorns fur?')
answer == input('> ').strip().lower()
if answer.startswith("smile"):
return True
else:
return False
questions = [q1,q2,q3]