Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
11

mad libs generator

EliasTheGreat
EliasTheGreat

This is an online mad lib that takes your inputs and puts them into the story. This is the second repl that I've made so I hope you enjoy it.

2 years ago

Voters

Comments

TopNew
4
RahulChoubey1
RahulChoubey1

Use f-strings to make this better.

Instead of writing 'Hello '+name+'. You're looking '+adjective+' today!', you can write f'Hello {name}. You're looking {adjective} today!'(note the f). Learn more here.

2 years ago
1
SeamusDonahue
SeamusDonahue

sure that works but i find str+str+str more readable

@RahulChoubey1

2 years ago
2
RahulChoubey1
RahulChoubey1

@SeamusDonahue
But typos are harder to spot…

2 years ago
3
3
RahulChoubey1
RahulChoubey1

Great for a second project!

pog enough to say pog

2 years ago
2
SeamusDonahue
SeamusDonahue

some mistakes like ""Im goign to my grandmothers house,"" goign
but still really funny
very nice job!

2 years ago
2
Brendan23
Brendan23

write a silly word
supercalafragilisticespialadotious

2 years ago
2
zakdakidd
zakdakidd

Not to bad for a second project!

2 years ago
2
TheyAndThem
TheyAndThem

cool here is my story

Charlemagne was the red King of Franks and cats. In 800 A.D. he was crowned Emperor of the Holy Roman bathtub by Pope Leo the Third. He was born in 742. His father was Pepin the fast, and his grandfather was Charles the pencil. Charlemagne converted thousands of Saxons to Christianity. He converted them by cutting off their dogs and setting fire to their shoes. In 778, he invaded Spain but defeated by moors at Maryanne A town. Charlemagne was uneducated, but had great repect for education and established many pink schools. And he was known for the justice of his laptops and his kindness to slowly people

2 years ago
1
1
TheCheeseCoder
TheCheeseCoder

@EliasTheGreat

good for a second repl, but you could make changes

  1. Terminal games get a little bit dry without colors, so use try to use a module like termcolor for your next project.

  2. Try to minimalize the amount of code. Parts of the code can be put into functions and other things. I was guilty of this when i started python, but i've learnt from then

  3. Using the sys and os modules help a lot when it comes to terminal stuff. u don't need to learn the whole module, but learning little things like

sys.exit() os.system(clear)
  1. This is more of a neatness thing, but putting more free lines would help
2 years ago
1
ColePayneSexton
ColePayneSexton

Mine misspelled going as goign, its in line 45

2 years ago
Load more