- [Instructor] Now let's take a look at how the…Python language works with variables.…So in your editor open the file named…variables_start.py.…So first note that comments in Python…are declared using the hash character.…Let's go ahead and declare a variable,…so I'll write F equals zero…and let's print it, all right, print F.…So in this case I'm declaring a variable named F…and assigning it the value of zero…and next I call the print function,…which is going to print the value of that variable.…
So let's go ahead and save and run this program…and remember if you're not using VS code…you can just run this in your terminal.…So I'll just go ahead the debug view and run this,…show the output window,…and you can see that it's printing the value zero,…because that's what the value of F is.…All right, so let's add a few more lines of code.…So I'll write F equals ABC…and then once again we'll print F.…Now I'm saying that whatever the value of F was before,…it was an integer before now let's make it a string.…
Let's go ahead and save and run again…
- Installing Python
- Choosing an editor or IDE
- Working with variables and expressions
- Writing loops
- Using the date, time, and datetime classes
- Reading and writing files
- Fetching internet data
- Parsing and processing HTML
Skill Level Beginner
Programming Foundations: Design Patternswith Elisabeth Robson2h 19m Intermediate
1. Getting Started
2. Python Basics
3. Working with Dates and Time
4. Working with Files
5. Working with Web Data
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.