Home
Random
Log in
Settings
About Rosetta Code
Disclaimers
Rosetta Code
Search
Mad Libs: Difference between revisions
Page
Discussion
← Older edit
Newer edit →
Mad Libs
(view source)
Revision as of 13:15, 17 October 2017
378 bytes removed
,
6 years ago
→{{header|Python}}
Revision as of 13:14, 17 October 2017
(
view source
)
rosettacode>Dfdfdfdfdfdfdf
(
→{{header|Python}}
)
← Older edit
Revision as of 13:15, 17 October 2017
(
view source
)
rosettacode>Dfdfdfdfdfdfdf
(
→{{header|Python}}
)
Newer edit →
Line 2,138:
print '\n\n\n' + story % substitutions</lang>
{{out}}
<pre>The story template is:
<name> went for a walk in the park. <he or she>
found a <noun>. <name> decided to take it home.
Input a comma-separated list of words to replace the following items
<he or she>,<name>,<noun>: She,Monica L.,cockerel
The story becomes:
Monica L. went for a walk in the park. She
found a cockerel. Monica L. decided to take it home.</pre>
=={{header|REBOL}}==
Anonymous user
rosettacode>Dfdfdfdfdfdfdf