Tag: data type

Python Programming Tutorial for Beginners – Part 2 – Variables and Data Types
Tech Tips

Python Programming Tutorial for Beginners – Part 2 – Variables and Data Types

Hello and welcome to another post in this python programming for beginners series. In this post, we will be going over variables, data types and the type() function. Now let's get into things by opening the Thonny IDE and let's start. Variables Variables are containers for storing data values - think of them as a bucket or a drawer. So if we have a variable named x and we store the value 3, think of it as a bucket holding the number three. We can have other variables such as y holding the value 2.2 or z with the value "Cuba". Variables don't have to just have short one character names they can be almost anything as long as they don't start with a number, don't have any spaces or have any special characters except underscore. Variable names are also case sensitive so "fancyname" is no...