-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCLI_Version.py
More file actions
48 lines (38 loc) · 892 Bytes
/
CLI_Version.py
File metadata and controls
48 lines (38 loc) · 892 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
40
41
42
43
44
45
46
import random
subjects = [
"Ronaldo",
"Priyanka Chopra",
"Street Dog",
"Little Boy",
"Wild Lemur",
"Old Woman",
"Greedy Dolphin"
]
actions = [
"dances",
"celebrates",
"cries",
"sleeps",
"asks for a beer",
"makes bed",
"takes a bath"
]
placesOrObjects = [
"at Burj Khalifa",
"inside a cave",
"during FIFA",
"on a Tree",
"in the sea",
"at Mumbai Airport",
"in a rundown hut"
]
while True:
subject = random.choice(subjects)
action = random.choice(actions)
objects = random.choice(placesOrObjects)
headline = f"BREAKING NEWS: {subject} {action} {objects}"
print("\n" + headline)
user_input = input("\nDo you want to regenerate the headline? (Yes/No)").strip().lower()
if user_input == "No":
break
print("\nThanks for using Fake News Headline Generator")