Skip to content

Commit a0886fe

Browse files
committed
Add group 3 tweet messages.
1 parent e00ed7c commit a0886fe

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

group3.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
Create random non-boring twitter messages.
3+
"""
4+
5+
import random
6+
7+
nouns=["Tromso", "Norway", "Git", "GitHub", "This workshop"]
8+
verbs=["is", "was"]
9+
adverbs=["very", "actually", "really", "completely", "rather", "a bit"]
10+
adjectives=["amazing", "rainy", "sunny", "interesting", "mind-blowing", "HUGE"]
11+
punctuations=['.', '...', '!', ';']
12+
13+
def tweet():
14+
return ' '.join([random.choice(nouns),
15+
random.choice(verbs),
16+
random.choice(adverbs),
17+
random.choice(adjectives)]) \
18+
+random.choice(punctuations)

0 commit comments

Comments
 (0)