Save this video free

Python (Fall 2026) Module 2-12: A2 Explanation (using Pycharm)

Bill Moseley, Ph.D. - Computer Science Educator · 10:34 · Watch on YouTube

Part of Bakersfield College COMP B10. See all 37 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Bill Moseley explains the Module 2 Mad Libs assignment: collect four to five words with Python `input()`, insert them into a story with an f-string, and print the result. Using PyCharm, he demonstrates triple-quoted multiline strings, curly-brace placeholders, and input prompts, while noting that students may use the provided template, write their own story, or ask AI to generate one.

Key takeaways

Chapters

0:00 Mad Libs Assignment: Choose a Story and Five Word Prompts
3:00 Format a Multiline Mad Libs Story in PyCharm
7:00 Collect Inputs, Run the Story, and Find the Starter Template

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:02 So that leads me to our assignment for this  module. This assignment is called Mad Libs. And maybe some of you have heard of Mad Libs.  This is. It's kind of old at this point, but Mad Libs used to be a thing that you used to  be able to buy, these little books, and they were full of pages, and each page had a little  story in it. And that story had little blanks in there with like a word under it, like adjective  or an invention or food or a noun or a verb. And the idea is that they're a fun way for kids  to learn like the parts of speech, like what's the difference between a noun and a verb and an  adjective, while they write these little stories. Now, kids being kids, often write really stupid  things in there like poop and fart and, like,

0:54 you know, because that's what kids do. But they're  still learning parts of speech in a fun way. So in this assignment, I'm giving you some starter  text. In fact, this exact text as a sample story, which you can use. You can also make up your own  Mad Libs text if you want. A third option is to ask AI to create a Mad Libs for you. Now, what I'm  asking you to do is to get user input on four to five different words. So you would, for example,  ask them, "Give me a noun." You put that into a variable. Give me a verb. You put that into a  variable. So you're doing that four to five times,

1:44 and then you're using either string format or  an f-string to insert those words into the Mad Libs text and print it out. It's pretty simple,  but let me walk you through how I'm going to do

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Bill Moseley, Ph.D. - Computer Science Educator.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.