Programming Challenges - Practice What You've Learned

Bryson Payne
A free video tutorial from Bryson Payne
Best-Selling Author & Professor w/students in 163 countries
4.5 instructor rating • 4 courses • 56,909 students

Lecture description

The simple YourName.py app has all the necessary components for us to build a much more interesting program, like the old-fashioned Mad Libs® word games.

Try the challenge problems at the end of each section to extend your learning even further, and write code that's even cooler!

Learn more from the full course

Teach Your Kids to Code: Learn Python Programming at Any Age

Short, colorful apps and games you & your child can program right away, for ages 5 to 95! Chromebook, PC, Mac and Linux!

06:19:26 of on-demand video • Updated February 2021

  • Code your own apps and games in Python 3.9 for Chromebook, PC, Mac, or Linux, from pre-K to college level
  • Draw colorful spirals and shapes with Turtle graphics in Python
  • Create fun, playable games like War, Yahtzee, and Rock-Paper-Scissors
  • Build interactive apps that respond to user input and mouse clicks
  • Master variables, loops and functions to prepare for more advanced programming courses (and a brighter future)!
English At the end of each section you can practice what you've learned and create even cooler programs by trying a couple of challenge problems at the end of section one here I've given you a challenge problem to write a Madlib program. Mad Libs are fun word puzzles and word games that you can play with friends or play alone. In this case we've changed our your name program and instead of asking for a name and taking some input from the user we're asking for an adjective a noun and a verb. So first we have a line of comment Madlib that P Whitall let us know what we're naming the program. We've got an adjective that will take input asking the user to please enter an adjective and noun that says Please enter a noun and a verb that says Please enter a verb ending in e d. Then it prints your Madlib followed by a sentence using the adjective. The noun and the verb to type this in. Either from your screen or you can go to teach your kids to code com and download all the source code files you'll find. Challenge one Madlib. In the end of those files and let's save this and run it while the program asks Please enter an adjective I'll enter smart enter a noun. How about teacher and then a verb ending in e d. How about sneezed. My Madlib is the smart teacher sneezed over the lazy brown dog. That's pretty fun but I'm pretty sure you can make it even more fun. So play with this program change it up add a few more parts of speech as questions or input add a few more things down here to print out even more parts of speech in the Madlib. Play with this a little bit will learn how to program from scratch starting in section 2.