repl.it
@Str0b3/

MadLibs game

Python

No description

fork
loading
Files
  • main.py
main.py
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import time
time.sleep(0.7)
print("Welcome. ")
time.sleep(2)
print("This is Mad Libs version 1.")
time.sleep(2.7)
inp=input("Please enter your name to continue.  >>> ")
if inp == "":
	print("The value entered was invalid. Please try again later.")
	time.sleep(10)
else:
	print("Greetings, " + inp + ".")
	time.sleep(2)
	n1=input(inp + ", I need a noun. >>> ")
	time.sleep(1.5)
	n2=input(inp + ", I need a plural noun. >>> ")
	time.sleep(1.5)
	a1=input(inp + ", I need an adjective. >>> ")
	time.sleep(1.5)
	v1=input(inp + ", I need a future tense verb. >>> ")
	time.sleep(1.5)
	num2=input(inp + ", I need a number. >>> ")
	time.sleep(1.5)
	num1=input("Finally, " + inp + ", I need another number. >>> ")
	time.sleep(1.5)
	print("Okay. Time for the story, " + inp + ".")
	time.sleep(3.5)
	print("\nOne day...")
	time.sleep(3)
	print("What a busy day, thought Python.")
	time.sleep(1.5)
	time.sleep(1.5)
	time.sleep(1)
	print("*phone rings*")
	time.sleep(2)
	print("And that's my " + num1 + "th call today. *sigh*")
	time.sleep(5)
	print("*picks up phone*")
	time.sleep(2)
	print("'Hello?' said the caller.")
	time.sleep(3)
	print("'Welcome to Python's Pizza Place. What would you like?' said Python.")
	time.sleep(1.5)
	time.sleep(1.5)
	time.sleep(1.5)
	time.sleep(1.5)
	print("'I would like a " + n1 + " pizza with baby bella " + n2 + ", please,' said " + inp + ".")
	time.sleep(8)
	print("'Okay, " + inp + ", I have taken your order, ' said Python.")
	time.sleep(5)
	print("'All right, but make it " + a1 + "!' replied " + inp + ".")
	time.sleep(5)
	print("*hangs up*")
	time.sleep(2)
	print("Order #" + num2 + ", coming right up!")
	time.sleep(3.5)
	print("'Okay, I'll " + v1 + " it!' said a nearby employee.")
	
Fetching token
?