Skip to content

Commit 35faa8f

Browse files
committed
Contributing my Python project by the name of Story Generator in this repository.
1 parent 4d90840 commit 35faa8f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import random
2+
when = ['A few years ago', 'Yesterday', 'Last night', 'A long time ago','On 20th Jan']
3+
who = ['a rabbit', 'an elephant', 'a mouse', 'a turtle','a cat']
4+
name = ['Ali', 'Miriam','daniel', 'Hoouk', 'Starwalker']
5+
residence = ['Barcelona','India', 'Germany', 'Venice', 'England']
6+
went = ['cinema', 'university','seminar', 'school', 'laundry']
7+
happened = ['made a lot of friends','Eats a burger', 'found a secret key', 'solved a mistery', 'wrote a book']
8+
print(random.choice(when) + ', ' + random.choice(who) + ' that lived in ' + random.choice(residence) + ', went to the ' + random.choice(went) + ' and ' + random.choice(happened))

0 commit comments

Comments
 (0)