From dd5c8a90954b5dc3117c8b4802bd878d3ec30257 Mon Sep 17 00:00:00 2001
From: Jassed <jassedgmartinez@gmail.com>
Date: Mon, 24 Jun 2024 22:10:08 +0200
Subject: [PATCH 1/2] hello_world-variables-operators

---
 Jassed/00_hello_world.py | 15 +++++++++++++++
 Jassed/01_variables.py   | 37 +++++++++++++++++++++++++++++++++++++
 Jassed/02_operators.py   |  8 ++++++++
 3 files changed, 60 insertions(+)
 create mode 100644 Jassed/00_hello_world.py
 create mode 100644 Jassed/01_variables.py
 create mode 100644 Jassed/02_operators.py

diff --git a/Jassed/00_hello_world.py b/Jassed/00_hello_world.py
new file mode 100644
index 0000000..8cdf109
--- /dev/null
+++ b/Jassed/00_hello_world.py
@@ -0,0 +1,15 @@
+# Hola Mundo
+print("Hola Python")
+
+"""
+Comentarios 
+en 
+varias Líneas
+"""
+
+# Consultar tipo de dato 
+print(type("Hola Python")) # tipo 'str'
+print(type(4)) # tipo 'int'
+print(type(3.14)) # tipo 'float'
+print(type(3.14 + 2j)) # tipo 'complex'
+print(type(True)) # tipo 'bool'
\ No newline at end of file
diff --git a/Jassed/01_variables.py b/Jassed/01_variables.py
new file mode 100644
index 0000000..d6bc2ad
--- /dev/null
+++ b/Jassed/01_variables.py
@@ -0,0 +1,37 @@
+# Variables
+
+my_string_variable = 'My String variable'
+print(my_string_variable)
+
+my_int_variable = 10
+print(my_int_variable)
+
+my_bool_variable = True
+print(my_bool_variable)
+
+# Concatenación de variables en un print
+print('Hola', my_string_variable, 'Tengo', my_int_variable, 'años', 'es', my_bool_variable )
+
+
+# Algunas Funciones del sistema
+print(len(my_string_variable))
+
+# Variables en ua sola línea
+name, surname, alias, age = "Jassed", "Martinez", "Mouredev", 23
+print(name, surname, alias, age)
+
+
+# Inputs
+'''
+name = input('What is your name: ')
+age = input('How old are you? ')
+print(name)
+print(age)
+'''
+
+
+# Forzando el tipo?
+# Realmente no lo forzamos, estamos indicando lo que queremos que sea
+address: str = "Mi dirección"
+address: int = 32
+print(address)
\ No newline at end of file
diff --git a/Jassed/02_operators.py b/Jassed/02_operators.py
new file mode 100644
index 0000000..60d05c7
--- /dev/null
+++ b/Jassed/02_operators.py
@@ -0,0 +1,8 @@
+## Operadores
+
+print(3 + 3) ## Suma
+print(3 - 3) ## Resta
+print(3 * 3) ## Multiplicación
+print(3 % 3) ## Resto
+print(3 / 3) ## División
+

From ca632340982a5932d8e2ee4ead8a273394d2535e Mon Sep 17 00:00:00 2001
From: Jassed <jassedgmartinez@gmail.com>
Date: Wed, 26 Jun 2024 15:50:03 +0200
Subject: [PATCH 2/2] operators, strings

---
 Jassed/02_operators.py | 46 +++++++++++++++++++++++++++++-
 Jassed/03_strings.py   | 63 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 108 insertions(+), 1 deletion(-)
 create mode 100644 Jassed/03_strings.py

diff --git a/Jassed/02_operators.py b/Jassed/02_operators.py
index 60d05c7..ff0186d 100644
--- a/Jassed/02_operators.py
+++ b/Jassed/02_operators.py
@@ -1,8 +1,52 @@
-## Operadores
+## Operadores Aritméticos
 
 print(3 + 3) ## Suma
 print(3 - 3) ## Resta
 print(3 * 3) ## Multiplicación
 print(3 % 3) ## Resto
 print(3 / 3) ## División
+print(3 // 3) ## Floor division (para que aproxime a número entero)
+print(3 ** 3) ## Calcular exponente
+print(3 ** 3 + 3 - 8 / 1 // 2)
 
+print("------------------")
+
+print("Hola " + "Python")
+print("Hola " + str(6))
+print("Hola " * 6)
+print("Hola " * ( 2 ** 2))
+
+my_float = 2.5 * 2 
+print("Hola " * int(my_float))
+
+print("------------------")
+
+## Operadores Comparativos
+
+print(3 > 4)
+print(3 < 4)
+print(3 >= 4)
+print(3 <= 4)
+print(3 == 4)
+print(3 != 4)
+print(3 > 4 == 2)
+
+print("------------------")
+
+print("Hola" > "Python")
+print("Hola" < "Python")
+print("Hola" >= "Sola") ## Compara en ordenación Alfabética por ASCII
+print(len("aaa") >= len("abaa")) # Cuenta caracteres
+print("Hola" == "Hola")
+print("Hola" != "Python")
+
+print("------------------")
+
+## Operadores Lógicos
+
+print(3 > 4 and "Hola" > "Python")
+print(3 < 4 or "Hola" > "Python")
+print(3 < 4 and "Hola" < "Python")
+print(3 < 4 or "Hola" < "Python")
+print(3 < 4 or ("Hola" < "Python" and 4 == 4))
+print(not(3 > 4)) # El "not" se usa para negar toda la condición
diff --git a/Jassed/03_strings.py b/Jassed/03_strings.py
new file mode 100644
index 0000000..873bccc
--- /dev/null
+++ b/Jassed/03_strings.py
@@ -0,0 +1,63 @@
+## Strings
+
+my_string = "Mi String"
+my_other_string = 'Mi otra String'
+
+print(len(my_string))
+print(len(my_other_string))
+
+print(my_string + " " + my_other_string)
+
+my_new_line_string = "Este es un String \ncon salto de línea"
+print(my_new_line_string)
+
+my_tab_string = "\tEste es un String con tabulación"
+print(my_tab_string)
+
+my_scape_string = "\\tEste es un String \\nescapado"
+print(my_scape_string)
+
+# Formateo
+
+name, surname, age = "Jassed", "Martínez", 23
+print("Mi nombre es {} {} y mi edad es {}".format(name, surname, age))
+print("Mi nombre es %s %s y mi edad es %d" %(name, surname, age))
+print(f"Mi nombre es {name} {surname} y mi edad es {age}")
+
+# Desenpaquetado de Caracteres
+
+language = "python"
+a, b, c, d ,e, f = language
+print(a)
+print(b)
+print(c)
+print(d)
+
+# División
+
+language_slice = language[1:3]
+print(language_slice)
+
+language_slice = language[1:]
+print(language_slice)
+
+language_slice = language[-2]
+print(language_slice)
+
+language_slice = language[1:2:4]
+print(language_slice)
+
+# Revserse
+
+reverse_language = language[::-1]
+print(reverse_language)
+
+# Funciones del sistema
+
+print(language.capitalize())
+print(language.upper())
+print(language.count("t"))
+print(language.isnumeric())
+print("1".isnumeric())
+print(language.upper().isupper()) 
+print(language.lower().isupper()) 
\ No newline at end of file
