Basic types and their use in Python

Variables in Python are there to store values, there are different types of variables, but the basic ones are integers, floating point, strings (text). The program has five standard data types: numbers, string, list, tuple (the main differences between lists and tuples is that tuples cannot be updated, unlike lists, also you use brackets with lists and parenthesis with tuples) and dictionary (stores data that can be shown pressing the key/phrase that has been assigned to it).

Here’s an example of the use of variables in Python:

Basic types and their use in Python

Basic types and their use in Python

CC BY 4.0 Basic types and their use in Python by tywins is licensed under a Creative Commons Attribution 4.0 International License.

Comments are closed.