Documentos de Académico
Documentos de Profesional
Documentos de Cultura
PRINCIPIANTES
CLASE 1
IGNACIO DEZA
• En este curso aprenderán Python a un alto nivel
• Con Python pueden hacer casi todo lo que quieran
• Ejemplos:
• Usarlo para sustituir excel
• Usarlo para automatizar tareas aburridas
• Usarlo para extraer fotos, texto etc del web o de un PDF
• Usarlo para cosas avanzadas como robótica o desarrollo web
• Usarlo para cotejar datos, visualización, diseño gráfico y
muchas cosas más!
• Y ES MUY FACIL DE APRENDER Y DE USAR
ACERCA DE MI
• Doctor en Física.
• Profesor de la Universidad Atlántida Argentina.
• Especialidad en Análisis de datos, Big Data y Estadística
tanto en investigaciones científicas como en la empresa.
• Uso Python como herramienta base en mi trabajo, junto
con C++.
• Más de 10 años de experiencia como programador
Python.
• Mi Email: ignacio.deza@atlantida.edu.ar
• Todo el material estará en una carpeta GOOGLE DRIVE.
INTRODUCCIÓN AL CURSO
•
ming language that’s easy to learn and fun to adventure, you’ll learn how to:
use! But books about learning to program in Use fundamental data structures like lists,
Python can be kind of dull, gray, and boring, tuples, and maps
and that’s no fun for anyone.
Organize and reuse your code with func-
Python for Kids brings Python to life and
tions and modules
brings you (and your parents) into the world of
programming. The ever-patient Jason R. Briggs Use control structures like loops and
will guide you through the basics as you experi- conditional statements
ment with unique (and often hilarious) example Draw shapes and patterns with Python’s
programs that feature ravenous monsters, secret turtle module
agents, thieving ravens, and more. New terms Create games, animations, and other
are defined; code is colored, dissected, and graphical wonders with tkinter
explained; and quirky, full-color illustrations
Why should serious adults have all the fun?
keep things on the lighter side.
Python for Kids is your ticket into the amaz-
(en inglés)
Chapters end with programming puzzles
Beginning
ing world of computer programming.
designed to stretch your brain and strengthen
•
your understanding. By the end of the book
Python
you’ll have programmed two complete games: Jason R. Briggs has been a programmer since
a clone of the famous Pong and “Mr. Stick Man the age of eight, when he first learned BASIC on
Races for the Exit”— a platform game with a Radio Shack TRS-80. He has written software
jumps, animation, and much more. professionally as a developer and systems archi-
tect and served as Contributing Editor for Java
®
Developer’s Journal. His articles have appeared
in JavaWorld, ONJava, and ONLamp. Python
for Kids is his first book.
• Lenguaje interpretado.
• De alto nivel.
• De propósito general.
• Fácil de leer y de escribir.
• Manejo automático de memoria.
• Multi-paradigma (Imperativo, funcional,
objetos, etc…).
• Diseñado para ser fácil de aprender.
USAR PYTHON ONLINE
LO QUE VAMOS A USAR HOY
https://www.pythonanywhere.com/
INSTALAR PYTHON EN SUS PC
A PARTIR DE L A PROXIMA CL ASE
https://www.anaconda.com/download/
INSTALAR PYTHON EN SUS PC
POR FAVOR INS TAL AR PARA L A PRÓXIMA CL ASE
https://www.anaconda.com/download/
USAR PYTHON EN LA LINEA DE COMANDO
• También pueden
usar Python en el
celular/tablet.
• Funciona bien
para automatizar
cosas y para
correr scripts en
internet.
EMPEZANDO
EL TRADICIONAL “HOL A MUNDO”
• La función print()
• Escribir “Hola Mundo”
• Calculadora básica (+, -, *, /, %,**)
• Orden de las operaciones matemáticas
• Tipos simples: Enteros, fraccionarios, letras
• El comando “_” en la línea de comando
• Variables, poniéndole nombres a las cosas
• El tipo (string, int, float y double) se asigna
automáticamente.
CAMBIANDO DE TIPO
• Si no tengo una
lista puedo
crearla con
range()
• Aquí i va
tomando los
valores de 0 al
valor de range
TOMANDO DECISIONES CON IF
• La función if()
• Los (:) y el tab (4 espacios obligatorios) también
son necesarios
• True (Verdadero) y False (Falso)
• Igualdad (==) y desigualdad (!=)
• Comparación (<), (<=), (>), (>=)
• y (and), o (or) para hacer decisiones más
complejas
EJEMPLO DE IF