-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmadlibs.py
More file actions
26 lines (20 loc) · 1.09 KB
/
madlibs.py
File metadata and controls
26 lines (20 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name = input('Enter your name: ')
gender= input('Enter your gender: ').lower()
adjective = input('adjective: ')
color= input('What is your best color: ').upper()
hobby= input('What are your hobbies: ').upper()
dreams = input('What is your dream Job: ').upper()
mood = input('Mood right now?: ')
#all = name,gender,adjective,color,hobby,dreams,mood
if gender == "male" :
sentence = f'hello {adjective} {name}, how are you doing today?, oh! you are feeling {mood} \
that is okay, color {color} is cool. being a/an {dreams} is a good thing never give up on your dreams \
and i can see you like {hobby}, you are quite interesting!'
elif gender == 'female':
sentence = f'hello {adjective} {name}, how are you doing today?, oh! you are feeling {mood} \
that is okay, color {color} is cool. being a/an {dreams} is a good thing never give up on your dreams \
and i can see you like {hobby}, you are quite interesting!'
else:
sentence = f'hello to this wonderful being, how are you doing today? \
I can see you dont feel like talking about anything, go take a nap or talk to your love ones'
print(sentence)