Working with files in Python
One of the most useful things to know how to do when just learning how to program is knowing how to read and write text files. In this video, I show you how to do just that.
Example code from the video:
Continue reading “Learn how to code with python: Lesson 4 – Reading and writing files” Working with Numbers in Python!
Below is lesson number 3 in the series: Learn how to code with Python. In this lesson I explain the basic things you need to know to start working productively with numbers in Python.
In the video I talk about the different types of numbers:
Integers, or int in Python Floating point number, or float in Python
You can use the Python type() function to see the type a number holds.
For example: Continue reading “Learn how to code with python: Lesson 3 – Working with numbers” Working with text
In this lesson, I show you how you can work with text. Text in programming lingo is also referred to as a string. And a string can be described as a group of characters. A character can be a letter, a number, a space, a comma, a point, a hash (#), etc.. So far, so good …
Continue reading “Learn how to code with python: Lesson 2 – Working with text”