“python - programación” - instituto tecnológico de...
TRANSCRIPT
“Python - Programación”
Rogelio Ferreira Escutia
Programación
3
Python - Versión
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
Para ver la versión instalada (en consola):
4
Python - Intérprete
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
Para entrar al intérprete de Python (en consola):
5
Python – Intérprete (Ayuda)
.
Para entrar a la ayuda en el intérprete de Python (en consola):
6
Python – Hola Mundo (consola)
.
> nano hola.py
> python hola.py
Hola Crayola!!!
7
Python – Hola mundo (con VSCode)
.
Abrir el archivo con el Visual Studio Code (previamente instalado)
8
Python – Hola mundo (con VSCode)
.
Abrir el archivo con el Visual Studio Code (previamente instalado) y correrlo en la consola:
9
Zen of Python
.
Es una lista de principios de diseño para el lenguaje Python:
10
11
Comentarios
.
Para poner comentarios en nuestro código:
Tipos de Datos
13
Enteros (int)
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
14
Cadenas (strings)
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
15
Boleanas (boolean)
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
Operadores
17
Operadores Aritméticos
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
18
Operadores de comparación
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
19
Operadores Boleanos
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
Variables
21
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
22
Manejo de variables
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
Funciones integradas
24
Funciones integradas
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
Python cuenta con algunas funciones ya integradas al lenguaje:
Toma de Decisiones
26
Toma de decisiones (if)
"Python All in one for Dummies", John Sovic y Alan Simpson, Jhon Wiley and Sons Editorial, New Jersey USA 2019
Rogelio Ferreira Escutia
Instituto Tecnológico de MoreliaDepartamento de Sistemas y Computación
Correo: [email protected] [email protected]
Página Web: http://sagitario.itmorelia.edu.mx/~rogelio/http://www.xumarhu.net/
Twitter: http://twitter.com/rogeplusFacebook: http://www.facebook.com/groups/xumarhu.net/