About 50 results
Open links in new tab
  1. python - Mad Libs Generator - Code Review Stack Exchange

    Jun 26, 2016 · I created this Mad Libs generator, but I don't know how to get the value of the key "ans" into a format string tuple. I feel like it's not Pythonic and that it's very convoluted and …

  2. Python code for mad libs game - Code Review Stack Exchange

    Oct 24, 2018 · I was doing a simple mad libs game thing but I want to know if there's any more efficient or readable way to write the code as I don't know the best ways to structure code as I …

  3. python - Mad Libs excercise - Code Review Stack Exchange

    Nov 30, 2018 · mad_libs() When you run you script with python mad_libs.py it will behave the same but if you import your module in another script, it will not execute the function upon …

  4. Automate the Boring Stuff Chapter 9 - Mad Libs Exercise

    Sep 19, 2022 · The project outline: Create a Mad Libs program that reads in text files and lets the user add their own text anywhere the word ADJECTIVE, NOUN, ADVERB, or VERB appears …

  5. python - Mad Libs program - Code Review Stack Exchange

    Jul 23, 2016 · My code creates a Mad Libs program. Its a prewritten story that you fill in blindly. There are 4 pages of 7 entry boxs and labels. When the inputs are in and next is pressed it …

  6. python - Madlibs Program - Code Review Stack Exchange

    Jun 10, 2020 · I just started to learn Python, and wrote this Madlib program that works the way I intended it to, so I do not need help debugging, just some advice on tips to improve the code …

  7. java - MadLibs builder - Code Review Stack Exchange

    Jun 14, 2022 · Also, I really liked several of the suggestions like using 'Random' instead of Math.random. I know they aren't dumb, they just follow a state guided AP curriculum and …

  8. Python code for Mad Libs - Code Review Stack Exchange

    Jun 1, 2016 · I'm learning Python 3 using the Automate the Boring Stuff with Python manual. In the chapter on reading and writing files one of the exercises is to make a program that would …

  9. python - Generating random email addresses - Code Review Stack …

    Jul 28, 2014 · The code below generates only 10 email domains. To me, this is bruteforce programming. Is there another random integer library? Could I use something like …

  10. Python Automate the Boring Stuff Collatz exercise

    May 21, 2018 · I'm looking for some feedback on my code for the collatz function exercise in the Python book Automate the Boring Stuff. It works, but doesn't feel very elegant to me.