Python 3
Yurley Sanchez
(Yurs)
Jupyter Notebooks
Acerca de mi
- Ing. en Sistemas
-
Desarrolladora Web
-
Pythonista
-
Freelance
- Django Girls Colombia
- Pycon 2018
- Python Bucaramanga
Voluntariado
Yurs.ksf1@Gmail.com
+57 319 487 7423
@yurs_ksf1
yursksf1
Python
Lenguaje de Programación
¿Que es Python?
¿Por qué Python?
No lo digo yo
Lo dice la ciencia
Software libre
Gran Comunidad
Amigable (facil de leer)
Python is Awesome!
http://www.microsiervos.com/archivo/ordenadores/10-lenguajes-programacion-2017.html
Comunidad
import this
Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those!
Hermoso es mejor que feo.
Explícito es mejor que implícito.
Simple es mejor que complejo.
Complejo es mejor que complicado.
Plano es mejor que anidado.
Escaso es mejor que denso.
Cuenta la legibilidad.Tim Peters
PEP 20
Conceptos Básicos de Programación
Lenguaje de Programacion
es la forma en la que nos comunicamos con el computador
variables
a = 1
b = 2
c = a + b
3
a = "Hola "
b = "Mundo"
c = a + b
"Hola Mundo"
Tipos de datos
more: https://www.python.org/dev/peps/pep-0008/
a = 1
type(a)
int
Números
Texto
Booleanas
a = True
type(a)
bool
a = "Hola Yurley"
type(a)
string
Arreglos
vect1 = [1,2,3]
vect2 = [1,"2",3.3, [4,5]]
# key, value
dict1 = {
1: "uno",
2: "dos",
"num": "numero",
"mes": "enero",
"dia": "lunes",
}
tupla = (1,2,3)
tupla = (1,"2",3.3, [4,5])
Vectores
Diccionarios
Tuplas
Funciones
def suma(a, b):
return a + b
def resta(a, b):
return a - b
def multiplica(a, b):
return a * b
def divide(a, b):
return a / b
def potencia(a, b):
return a ** b
def saludar(nombre):
return "hola " + nombre
def despedirse(nombre):
return "chao " + nombre + " ten un buen dia"
More...?
más materiales
- Dajngo - https://github.com/Yursksf1/DG_pulls20
- Pandas - https://pandas.pydata.org/pandas-docs/stable/10min.html
- Plotly - https://plot.ly/python/ipython-notebook-tutorial/
- ArcGIS - http://notebooks.esri.com
- Machine Learning - https://github.com/ageron/handson-ml
Agradecimientos
- Django Girls
- Argentina en Python
- Vive Lab Bucaramanga
- Python Bucarmanga
Micro tutorial Python
By Yurley Sánchez
Micro tutorial Python
tutorial de programacion basica en python repositorio: https://github.com/Yursksf1/micro-tutorial-python
- 525