Save this video free

Python (Fall 2026) Module 2-3: Data Types

Bill Moseley, Ph.D. - Computer Science Educator · 12:23 · Watch on YouTube

Part of Bakersfield College COMP B10. See all 47 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 introduces four Python data types: strings, integers, floating-point numbers, and Booleans, explaining how their properties affect program design. He recommends readable camel-case variable names with type prefixes, then demonstrates assigning values and using print() to inspect strings, numbers, and Boolean values.

Key takeaways

Chapters

0:00 Python Strings, Integers, Floats, and Booleans
5:20 Camel Case and Type-Prefixed Variable Names
8:34 Assigning Variables and Checking Values with print()

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

Transcript excerpt

0:01 Programs or variables can contain lots  of different types of data. In fact, variables can contain almost any type  of thing in programming, or in Python. But here are the four types that I'm  going to start with. Okay? And we need to know the difference between these things  because it will impact how you do a program. The first type we've already played around  with, called the string, or string literal. It's just a list of characters. The list of  characters always stays in that same order. It stays in that same case. And you  can't actually change just one letter in that. You can replace that string with a  different string in the variable, but there's

0:52 no mechanism in Python for just changing, let's say I wanted to capitalize this N. I can't change just that. I could replace it with  a new string with a capital N, but I can't just change one character. Strings are very simple.  And that's a good thing and a difficult thing. We will work with strings throughout this whole  class, lots and lots. An integer is any number without decimals. So it's any whole number. It  can be positive or negative. It can be zero. And for all intents and purposes in this class, it  goes from infinity negative to infinity positive. Now, there are actual limitations for  how big an integer can be in Python.

1:46 But none of those are relevant to anything  we're going to be doing in this class. So we're just not going to worry about it. For  all intents and purposes, it's pretty infinite. But it's whole numbers. If I want a  decimal or a partial number, like 13.985, it's a floating point number. Also known as a  float. So if I say we're going to create a float

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.