Share your repls and programming experiences

← Back to all posts
First post! (Mad Libs)
Explo (12)

It's my first post! I had some free time so I decided to make a simple mad libs game. Feel free to comment what you came up with!

Commentshotnewtop
nt998302 (102)

Nice Job! I remember making something similar to this, and I wish you luck! :)

CreeperKING112 (6)

instead of:

print ('This is a simple Mad Libs game, you will be given several prompts for parts of speech. Type in a word and hit enter.')
print('Name')
name1 = input()

print('Adjective')
adj1 = input()

print ('Noun')
present= input()

print ('Part of body, plural')
bodyparts1 =input()

print ('Adjective')
adj2 =input()

print ('Another name')
name2 =input()

#final thingy
print ('Dear '+name1)

print('Wow! I did not expect such a '+adj1+' present! Thank you so much for the ' +present+ ' that you gave me. I have wanted that ' +present+ ' since I first laid my ' +bodyparts1+ ' on it! You can’t imagine how ' +adj2+ ' I am. Thank you so much!')
print('Love,')
print('' +name2+'.')

do:

print ('This is a simple Mad Libs game, you will be given several prompts for parts of speech. Type in a word and hit enter.')
name1 = input('Name')

adj1 = input('Adjective')

present = input('Noun')

bodyparts1 = input('Part of body, plural')

adj2 = input('Adjective')

name2 = input('Another name')

#final thingy
print ('Dear '+name1)

print('Wow! I did not expect such a '+adj1+' present! Thank you so much for the ' +present+ ' that you gave me. I have wanted that ' +present+ ' since I first laid my ' +bodyparts1+ ' on it! You can’t imagine how ' +adj2+ ' I am. Thank you so much!')
print('Love,')
print('' +name2+'.')

I am not saying your code is bad but if you do it the way I said you can make it more simple and save time!

nathancoder (1)

Dear jim
Wow! I did not expect such a dead present! Thank you so much for the shot that you gave me. I have wanted that shot since I first laid my eyes on it! You can’t imagine how dead I am. Thank you so much!
Love,
bob.

faizanthemaster (2)

plese up vote my post

Thecrowbar1234 (109)

@faizanthemaster plz don't advertise your posts in others in the future :)

LOLLIPOP06 (25)

@faizanthemaster it makes you look desperate, just to let you know