Advertisement
JPablos

Redacción divertida, Simple. Python

May 24th, 2022 (edited)
674
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.92 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. # -*- coding: utf-8 -*-
  4.  
  5. # Redacción Divertida Simple
  6.  
  7. ADJECTIVE1 = input('Enter an ADJECTIVE1 (Ex: pleasing, sunny, country): ')
  8. ADJECTIVE2 = input('Enter an ADJECTIVE2 (EX: happy, numerous, felicitous): ')
  9. ADJECTIVE3 = input('Enter an ADJECTIVE3(EX: hardest, ): ')
  10. NOUN1 = input('Enter a NOUN1 (Ex; coast, mountain, lake): ')
  11. NOUN2 = input('Enter a NOUN2 (Ex: coast, mountain, lake, desert): ')
  12. NOUN3 = input('Enter a NOUN3 (Ex; coast, mountain, lake): ')
  13. PLURAL_NOUN1 = input('Enter a PLURAL_NOUN1 (Ex: horses): ')
  14. PLURAL_NOUN2 = input('Enter a PLURAL_NOUN2 (Ex: rabbits, partridges): ')
  15. PLURAL_NOUN3 = input('Enter a PLURAL_NOUN3 (Ex: rabbits, partridges): ')
  16. PLURAL_NOUN4 = input('Enter a PLURAL_NOUN4 (Ex: times, savings, dollars, euros): ')
  17. GAME = input('Enter a GAME (Ex: football, tennis, tic-tac-toe, basketball): ')
  18. VERB1_ENDING_IN_ing = input('Enter a VERB1_ENDING_IN_ing (Ex: reading, eating, jumping): ')
  19. VERB2_ENDING_IN_ing = input('Enter a VERB2_ENDING_IN_ing (Ex: reading, eating, jumping): ')
  20. VERB3_ENDING_IN_ing = input('Enter a VERB3_ENDING_IN_ing (Ex: reading, eating, jumping): ')
  21. PART_OF_THE_BODY = input('Enter a PART_OF_THE_BODY (Ex: arms, head, shoulders, legs, nose): ')
  22. PLANT = input('Enter a PLANT (Ex: nettles, poison ivy, poison oak): ')
  23. A_PLACE = input('Enter a A_PLACE (Ex: hospital, infirmary, drugstore): ')
  24. NUMBER = input('Enter a NUMBER (Ex: two, three, four, five, six, seven, eight): ')
  25.  
  26. print('\n')
  27. print('A vacation is when you take a trip to some ' + ADJECTIVE1 + ' place')
  28. print('with your ' + ADJECTIVE2 + ' family. ' + 'Usually you go to some place')
  29. print('that is near a/an ' + NOUN1 + ' or up on a/an ' + NOUN2 + '.')
  30. print('A good vacation place is one where you can ride ' + PLURAL_NOUN1)
  31. print('or play ' + GAME + ' or go hunting for ' + PLURAL_NOUN2 + '. I like')
  32. print('to spend my time ' + VERB1_ENDING_IN_ing + ' or ' + VERB2_ENDING_IN_ing + '.')
  33. print('When parents go on a vacation, they spend their time eating')
  34. print('three ' + PLURAL_NOUN3 + ' a day, and fathers play golf, and mothers')
  35. print('sit around ' + VERB2_ENDING_IN_ing + '. Last summer, my little brother')
  36. print('fell in a/an ' + NOUN3 + ' and got poison ' + PLANT + ' all')
  37. print('over his ' + PART_OF_THE_BODY + '. My family is going to go to (the)')
  38. print(A_PLACE + ', and I will practice ' + VERB3_ENDING_IN_ing + '. Parents')
  39. print('need vacations more than kids because parents are always very ')
  40. print(ADJECTIVE3 + ' and because they have to work ' + NUMBER)
  41. print('hours every day all year making enough ' + PLURAL_NOUN3 + ' to pay')
  42. print('for the vacation.')
  43.  
  44. '''
  45. Ejercicio basado en:
  46.  
  47. --> https://www.madlibs.com/wp-content/uploads/2016/04/VacationFun_ML_2009_pg15.pdf
  48.  
  49. From VACATION FUN MAD LIBS ® • Copyright © 1988 by Price Stern Sloan,
  50. a division of Penguin Putnam Books for Young Readers, New York.
  51.  
  52. ¿Qué es Mad-Lib?
  53. --> https://spiegato.com/es/que-son-mad-libs
  54. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement