Save this video free

CS110A Week 8 Day 2 lesson on 10/08/2026

indika walimuni · 1:27:49 · Watch on YouTube

CS110A Week 8 Day 2 lesson on 10/08/2026 Watch on YouTube →

Overview

Indika Walimuni builds a Python Turtle exercise that draws circles with random radii and positions, then explains how functions support code reuse and how random RGB values could add color. The lesson moves through Python types and string immutability, floating-point limits and formatting, the `math` module, and modulo arithmetic, before reviewing course assignments and introducing a three-digit digit-swapping problem.

Key takeaways

Chapters

0:00 Random-Circle Assignment: Inputs, Outputs, and Reusing Turtle Code
4:18 Using random.randint to Generate Inclusive Random Integers
10:50 Planning and Coding One Circle at a Random Turtle Position
19:08 Wrapping Circle Drawing in a Function and Calling It Five Times
26:43 Generating RGB Colors and Reviewing Function and Loop Benefits
36:04 Checking Python Types and Distinguishing Reassignment from Mutation
42:08 Testing String Immutability with Indexed Item Assignment
48:08 Break and Career-Project Suggestions for Student Portfolios
56:36 Floating-Point Literals, Scientific Notation, and Avogadro's Number
59:00 Python Integer Capacity and Floating-Point Overflow
1:03:02 Inspecting the math Module with dir and Accessing math.pi
1:06:40 Formatting Pi to Two Decimal Places and Converting the Result
1:11:37 Modulo (%) Returns the Remainder of Integer Division
1:15:29 Combining Floor Division and Modulo to Convert Minutes to Hours
1:18:59 Graded Discussion: Demonstrating Operators and Identifying Operands
1:22:18 Course Assignments: Driving Cost and Money Register Calculator
1:25:20 New Word Problem: Swap the First and Last Digits of a Three-Digit Integer

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

Transcript excerpt

0:00 Morning guys. It's our agenda today. So, we're going to first solve that. All right. So, I already copied it over here, okay? So, basically, um not this one, guys. I think running Nothing will come up. All right. So, um this is the problem statement. Basically, we are asked to you know, randomly create a set of cycles. Okay? The radius is random, and also the the location also random. I remember we already um draw a like, you know, wrote a function to

0:46 uh draw circles, right? So, uh we're going to reuse that code, guys, okay? So, um and then then um build on top of this, okay? That's actually usual practice in in programming, okay? Okay, so, but um let's do some practice first with this random number generator thing, right? So, um but I um yeah, so let's uh for the understand part, right? Let's start that, and then then we'll do some practice with the random numbers, and then then I use it, okay? So, All right. Um

1:47 So, what is the um Let me write it here. What are the inputs to our function? Inputs? Let's first figure out that. What are the inputs? Given color, right? Color. Uh anything else? No, right? Only the color, right? Yeah. So, the everything else random. So, we basically do the those figuring out inside our code. So, the word is given which recognizes the color is an input. So, um

2:34 the color. And this could be um uh I mean, let's say anything. We can learn about color can be coming as RGB values, integer values, or strings, okay? So, I would say uh like letters, like green, right? STR or an RGB int, red, green, blue value int, okay? Um integer value. And then that's actually

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

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.