--Originally published at Site Title
En Python podemos usar diferentes tipos de variables, y en este post veremos las mas importantes:
Variables primitivas:
- Enteros
- Flotadores
- Cuerdas
- Personajes
- Booleano
Las variables complejas
Los tipos son una categoría de las cosas dentro de Python Python con el que va a funcionar. Los tipos son
-
Enteros
- Los números enteros desde infinito hasta el infinito, tal como 1, 0, -5, etc.
-
Flotador
- Corto para cualquier número racional “número de coma flotante”, que generalmente se usa con decimales como 2.8 o 3,14159.
-
Instrumentos de cuerda
- Un conjunto de letras, números u otros caracteres.
-
Tuplas
- Una lista con un número fijo de elementos. es decir, x = (1,2,3) paréntesis hace que sea una tupla.
-
Lista
- Una lista sin un número fijo de elementos. es decir, x = [1,2,3] en cuenta los corchetes, una lista
-
Diccionarios
- Un tipo con múltiples elementos, es decir, x = {1 ‘a’, ‘b’: 2,3: 3} en el que abordar los elementos con, por ejemplo, un texto.
In Python you can use different types of variables, and in this message we will see the most important:
Primitive Variables
Primitive variables are the most basic, hence their “primitive” title. They are capable of storing a single value. In Python there are four primitive variable types, which are listed below.
- Integers
- Floats
- Strings
- Characters
- Booleans
Complex Variables
Types are a category for things within Python with which Python will work. Types are
-
Integers
- Whole numbers from negative infinity to infinity, such as 1, 0, -5, etc.
-
Float
- Short for “floating point number,” any rational number, usually used with decimals such as 2.8 or 3.14159.
-
Strings
- A set of letters, numbers, or other characters.
-
Tuples
- A list with a fixed number of elements. ie x=(1,2,3) parentheses makes it a tuple.
-
Lists
- A list without Continue reading "Basic types and their use"