Python Microcurso Programacion
Python Microcurso Programacion
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
3
Entrar al intérprete de
Python
Python - Intérprete
Para “entrar” al intérprete de Python (en consola) hay
que teclear:
python
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
5
Python - Intérprete
Para “salir” del intérprete de Python (en consola) hay
que teclear:
exit()
-
6
Hola Mundo en Python
Python – Hola Mundo (consola)
> nano hola.py
Hola Crayola!!!
. 8
Python – Hola mundo (con VSCode)
Abrir el archivo con el Visual Studio Code
(previamente instalado)
.
9
Python – Hola mundo (con VSCode)
Abrir el archivo con el Visual Studio Code
(previamente instalado) y correrlo en la consola:
.
10
Zen of Python
Zen of Python
Es una lista de principios de diseño para el lenguaje
Python:
.
12
13
Comentarios
Comentarios
Para poner comentarios en nuestro código:
.
15
Tipos de Datos
Enteros (int)
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
17
Cadenas (strings)
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
18
Boleanas (boolean)
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
19
Variables
Asignación de valores a variables
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
21
Manejo de variables
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
22
Operadores
Operadores Aritméticos
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
24
Operadores de comparación
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
25
Operadores Boleanos
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
26
Toma de Decisiones
Toma de decisiones (if)
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
28
Ciclos
Ciclos de enteros
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
30
Ciclos de un rango de enteros
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
31
Ciclo de una cadena
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
32
Ciclo de una lista
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
33
Ciclos condicionales
Ciclos condicionales (while)
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
35
Funciones integradas
Funciones integradas
Python cuenta con algunas funciones ya integradas al
lenguaje:
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
37
Funciones matemáticas
Funciones matemáticas (1)
La librería “math” cuenta con algunas funciones:
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
39
Funciones matemáticas (2)
La librería “math” cuenta con algunas funciones:
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
40
Binario, Octal y
Hexadecimal
Binario, Octal y Hexadecimal
Python cuenta con funciones para manejar estos
números:
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
42
Manejo de Cadenas
Manejo de cadenas (1)
Python cuenta con funciones para manejo de cadenas:
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
44
Manejo de cadenas (2)
Python cuenta con funciones para manejo de cadenas:
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
45
Manejo de cadenas (3)
Python cuenta con funciones para manejo de cadenas:
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
46
Rogelio Ferreira Escutia
Correo: [email protected]
[email protected]
Twitter: http://twitter.com/rogeplus
Facebook: http://www.facebook.com/groups/xumarhu.net/