string article = "Press Upvote"

Shoutout to Real Python

In this article you'll find:
- Introduction
- What is a Data Type?
- What are the most common Data Types?
- A little exercise

Before moving on to the next phase of Coding Basics, where we will see more advanced concepts, we must take the biggest step back and teach the basics: Datatypes.
You see, what if I told you that the first step to being a master programmer is to understand this?
Datatypes are found in all code, without exception. This because it is by means of these that we define our variables and the type of data that we will introduce in these.
Not only this, but they allow us to store information in a convenient way, information that can be used by the rest of the program.
Do you want to know the magic behind each variable and be able to work with any of them without any problem? Well, you'll just have to keep reading.

What is a Data Type?

Shoutout to DataFlair
A Data Type is a classification (class) of data that tells the compiler or IDE how we intend to use the data. That is to say, with these we dedicate the type of value that we will assign to the variables.
For example, if we want to indicate that we will introduce to a variable a series of characters, we use the DataType string. If we want to enter integers, we use int. And so on with many others.
Depending on the programming language, the definition of Datatypes will be mandatory or not. In the case of Python or Javascript, this is not necessary. We just define our variable (with var or const if it is Javascript) and then we assign the values corresponding to the type.
var_string = 'Hello'
int_var = 4
That said, what are the most used Data Types?

What are the most common Data Types?

Shoutout to Computer Hope
Before knowing which are the most used Data Types, we must take into account that according to the language, the structure of these may vary. While Java-based languages separate Data Types into primitive and non-primitive, C into primary, derived and user-defined, the simplest representation can be seen in Python.

Shoutout to Geeks For Geeks
For Python, data is divided into numeric, comprising of:
- Integers
- Floats
- Complex numbers.
Similarly, we have Booleans, dictionaries, sets and sequence type, which we have already seen in previous articles, comprised of:
- Strings
- Tuples
- Lists
However, as the most common we will always see integers, strings and booleans. The strings are all those variables where we will introduce character strings.
string character = 'Hello'
The integers are all the integer whole number values that we say to enter. In case we want to work with decimal values, we use the Data Type Float and if we want to work with really high numbers, in some languages we must use the Data Type Long.
int var1 = 20
float var2 = 34.5
long var3 = 65965666569
And finally, the Booleans. These are very often used in conditional statements, since they only have two states: True and False. Thus, by changing the value of these, we can indicate that something changed in the program.
IsItTrue = True
As for sets, tuples, lists and dictionaries, you can see all about them in the next article

A little exercise
Shoutout to TechDoge
As a little test for your knowledge about Datatypes, I have decided to leave a series of exercises that you can answer. For this, you just have to look at the following image and connect each variable to its respective Datatype:

Was it easy? Then it's time for a challenge. With the knowledge of Datatypes in the following article, identify which Datatype corresponds to the following variables:

If you were able to answer both, congratulations, you now understand and master Datatypes. Now you can create variables and understand what kind of information is recorded in each one.

With this we have completed the basics of Coding Basics. Now it is time to go into more advanced topics such as operations with classes, decorators, modules and Regular Expressions.
All this in the following articles of Coding Basics.
If you want to have an order of how to read the previous posts from simple to advanced. Here is a list:
1.- Data Types(This Post)
2.- Conditional Statements
3.- Switch Statements
4.- Lists, Dictionaries, Sets and Tuples
5.- Operations with Lists
6.- For Loops
7.- While Loops
8.- Functions
9.- Classes and Objects
10.- Differences between functions and methods




string article = "Presiona Upvote"

Shoutout to Real Python

En este artículo encontrarás:
- Introducción
- ¿Qué es un Data Type?
- ¿Cuales son los Data Types más comunes?
- Un pequeño ejercicio

Antes de pasar a la siguiente fase de Coding Basics, donde veremos conceptos mas avanzados, debemos de dar el mayor paso atrás y enseñar lo más básico: Los Datatypes.
Verás, ¿Que pasaría si te digo que el primer paso para ser un maestro programador es entender esto?
Los datatypes se encuentra en todo código, sin excepción. Esto debido a que son por medio de estos que definimos nuestras variables y el tipo de datos que introduciremos en estas.
No solo esto, sino que nos permiten almacenar información de manera conveniente, información que puede ser usada por el resto del programa.
¿Deseas conocer la magia detrás de cada variable y poder trabajar con cualquiera sin ningún problema? Bueno, solo tendrás que seguir leyendo.

¿Qué es un Datatype?

Shoutout to DataFlair
Un Data Type es una clasificación (clase) de datos que le dice al compilador o IDE como pretendemos usar los datos. Es decir, con estas dedicamos el tipo de valor que asignaremos a las variables.
Por ejemplo, si queremos indicar que introduciremos a una variable una serie de caracters, utilizamos el DataType string. Si queremos introducir números enteros, usamos int. Y así con muchas otras.
Dependiendo del lenguaje de programación, la definición de los Datatypes será obligatoria o no. En el caso de Python o Javascript, esto no es necesario. Solo definimos nuestra variable (con var o const si es Javascript) y luego le asignamos los valores correspondientes al tipo.
var_string = 'Hello'
int_var = 4
Dicho esto, ¿Cuales son los Data Types más usados?

¿Cuales son los Data Types más usados?

Shoutout to Computer Hope
Antes de saber cuales son los Data Types más utilizados, debemos de tomar en cuenta que de acuerdo al lenguaje, la estructura de estos puede variar. Mientras que los lenguajes basados en Java separan a los Data Types en primitivos y no primitivos, C en primarios, derivados y definidos por el usuario, la representación más sencilla puede observarse en Python.

Shoutout to Geeks For Geeks
Para Python, los datos se dividen en numéricos, que comprenden a:
- Enteros
- Flotantes
- Números Complejos.
De igual forma, tenemos a los booleanos, los diccionarios, los sets y los de tipo secuencia, que ya hemos visto en artículos anteriores, comprendidos por:
- Strings
- Tuplas
- Listas
Sin embargo, como los más comunes siempre veremos a los enteros, strings y booleanos. Los strings son todas aquellas variables donde introduciremos cadenas de caracteres.
string character = 'Hello'
Los enteros son todos los valores numéricos enteros que ingresamos. En caso de querer trabajar con valor decimales, usamos el Data Type Float y si deseamos trabajar con números realmente altos, en algunos lenguajes debemos de usar el Data Type Long.
int var1 = 20
float var2 = 34.5
long var3 = 65965666569
Y finalmente, los booleanos. Estos son utilizados con gran frecuencia en declaraciones condicionales, ya que solo tienen dos estados: Verdadero y Falso. Así, al cambiar el valor de estos, podemos indicar que algo cambió en el programa.
IsItTrue = True
En cuanto a los sets, tuplas, listas y diccionarios, puedes ver todo sobre ellos en el siguiente artículo

Un pequeño ejercicio
Shoutout to TechDoge
Como un pequeño test para tu conocimiento sobre Datatypes, he decidido dejar una serie de ejercicios que puedes responder. Para esto, solo debes de observar la siguiente imagen y conectar cada variable a su Datatype respectivo:

¿Fue fácil? Entonces es tiempo de un reto. Con el conocimiento de los Datatypes en el siguiente artículo, identifica que Datatype corresponde a las siguientes variables:

Si has podido responder ambos, ¡Felicitaciones!, ya entiendes y dominas los Datatypes. Ahora puedes crear variables y entender que tipo de información está grabada en cada una.

Con esto concretamos lo básico de Coding Basics. Ahora es tiempo de adentrarnos en temas más avanzados como lo son operaciones con clases, decoradores, módulos y Expresiones Regulares.
Todo esto en los siguientes artículos de Coding Basics.
Si quieres tener un orden de como leer los posts previos desde lo más sencillo hasta lo más avanzado. He aquí una lista:
1.- Data Types(Este Post)
2.- Declaraciones Condicionales
3.- Declaraciones Switch
4.- Listas, Diccionarios, Sets y Tuplas
5.- Operaciones con Listas
6.- Bucles For
7.- Bucles While
8.- Funciones
9.- Clases y Objetos
10.- Diferencias entre funciones y métodos



Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!
Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).
You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support.
Congratulations @jesalmofficial! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)
Your next target is to reach 7000 upvotes.
You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word
STOPCheck out our last posts:
In today's fast-paced digital world efficiency is paramount. CoolUtils offers a seamless solution for converting IMG files to JPG, eliminating the need for software installations. With just a few clicks, users can upload their IMG files, select the desired output format, and download the converted JPGs. The platform supports batch conversions, allowing multiple files to be processed simultaneously, saving valuable time. Moreover, CoolUtils ensures user privacy by not storing any files on their servers. For those seeking a reliable and user-friendly online converter, CoolUtils stands out as a top choice. Experience the convenience firsthand at https://www.coolutils.com/de/online/IMG-to-JPG 😊 Whether you're a professional or a casual user, CoolUtils simplifies the file conversion process, making it accessible to everyone.
Posted using STEMGeeks