From the course: Learning Python (2021)
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Variables and expressions - Python Tutorial
From the course: Learning Python (2021)
Variables and expressions
- [Instructor] All right now, let's take a look at how the Python language works with variables and data types. So in my editor, I'm going to open up the variables_start file. And there are five major data types in Python. There are numbers such as integers and floating point values. Strings, which are a collection of characters. Boolean values, which can be either true or false. Sequence types, such as lists and a data type called tuples which are immutable. I mean, the can't be changed. And dictionaries, which map unique keys to specific values. And so you can see here, I have defined a set of variables that represent each of these data types. And I have a set of print statements that print each of these values. So before we do anything else, let's just go ahead and run what we already have. So I'll right click and choose run Python file in terminal. And remember if you're not using VS code, you can just run…
Contents
-
-
-
-
Building Hello World9m 5s
-
(Locked)
Variables and expressions11m 44s
-
(Locked)
Python functions11m 52s
-
(Locked)
Conditional structures8m 17s
-
(Locked)
Loops9m 28s
-
(Locked)
Classes10m 30s
-
(Locked)
Importing and using modules2m 22s
-
(Locked)
Using exceptions5m 10s
-
(Locked)
Solution: Palindromes2m 37s
-
-
-
-
-