Save this video free

CS110A Week 6 Day 2 lesson on 09/24/2026

indika walimuni · 1:30:21 · Watch on YouTube

Part of Indika Walimuni: CS 110A. See all 25 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

Indika Walimuni introduces CS110A Chapter 5 by completing a CodeCheck name-tag exercise and teaching how user-defined functions organize reusable code. The lesson distinguishes keyboard input from function parameters and printing from returning, demonstrates exact-output debugging and clean-code practices, then applies functions to a pattern exercise and an equilateral-hexagon drawing task.

Key takeaways

Chapters

0:00 Read the CodeCheck Name-Tag Requirements
3:30 Launch CodeCheck with a Canvas LMS ID
6:30 Plan Name-Tag Inputs and Expected Output
11:00 Separate Keyboard Input from Function Parameters
14:00 Write the Name-Tag Function and Main Program
18:40 Compare Actual and Expected CodeCheck Output
24:20 Fix Name-Tag Line Breaks, Commas, and Labels
28:00 Submit CodeCheck Work and Troubleshoot Indentation
38:30 Begin Chapter 5: Treat Python as a Language
44:30 Use Functions to Abstract Repeated Rectangle Code
47:42 Clean-Code Advice: Readability, Names, and Comments
55:30 See Why Repeated Turtle Code Becomes Messy
1:03:50 Distinguish Function Definitions from Calls
1:10:00 Introduce Return Values with a Microwave Analogy
1:11:30 Debug a Square Function That Prints Instead of Returning
1:20:20 Return the Square So Function Calls Can Compose
1:24:00 Call get_pattern Twice and Start the Hexagon Exercise
1:28:39 Announce the City College REU Club

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

Transcript excerpt

0:00 So this is our agenda today. Okay. So um remember that code check problem. So we're going to actually start with that. Okay. So so let's go to that. So let's write here. Um yeah this one. So this is the problem. Okay. something. What is that? Okay, so let me uh refresh this. Okay, there you go. Okay, so um so um I actually you know may make it uh

0:52 clear the expected output. So like print it like that. Okay, so that way it's clear to you guys. Okay, what to uh what to get and then in fact code check actually um will try to print it like this way. Okay, so um basically the problem statement so there are like you know some things to uh read. Okay, so um take some time take 10 minutes to read this through because this is our first time using this right. So um and there there are a lot of clear instructions and then since there are a lot of instruction there's a lot to read. Okay. So but you know I I promise the the amount of things to read going to go um decrease. Okay. So uh in this case just we are printing a name tag. Okay. And

1:41 then this is the uh function you have to write. Okay. And then um uh in the um right you have to uh input these three in the main program. So they those are also instructions right. So collect input in the main program and there's a reason for that. We usually don't write uh collect input in our function we write. Okay. So it's because uh user has data and then user runs the main program. Okay. And then main program inside you call our function we write.

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, indika walimuni.

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.