Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
🤔 ¿Cómo utilizar raise, assert, try, except, else y finally? | Python desde cero | ¡Muy, muy Básico!
Play lesson

Python Data Science - 🤔 ¿Cómo utilizar raise, assert, try, except, else y finally? | Python desde cero | ¡Muy, muy Básico!

4.0 (5)
52 learners

What you'll learn

This course includes

  • 17 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Full Transcript

Cuando se genera un error, Python nos avisa con mensajes..que a veces no comprendemos, pero con raise, assert, try y except, puedes definir los mensajes de error y orientar al usuario del código, para que introduzca los valores correctos. Aquí te mostramos 6 ejemplos paso a paso ¡Esperamos que te sean de utilidad! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 💡Visita la sección de comunidad del canal para tips de Pandas y Python (¡Entre otros temas!) https://www.youtube.com/channel/UCvJpU1VFBMX3rPdCYt10QZw/community - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 🖥️Programa Python en línea, sin instalar software con Google Colab: https://colab.research.google.com - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ⏰ Por si tienes prisa, checa los temas por minuto en el vídeo: 00:00 raise 00:41 Ejemplo 1: raise + Exception 02:46 Ejemplo 2: TypeError 02:53 Ejemplo 3: raise + TypeError 04:58 assert 07:03 Ejemplo 4: assert (Temperaturas) 09:26 Try, except, else, finally: Diagrama 11:35 Ejemplo 5: División entre cero 15:58 Ejemplo 6: except (ValueError) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 🤗Nuestro blog: http://cctmexico.blogspot.mx/p/python.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 🎞️ Algunos vídeos que pueden ser de tu interés: Try | Except: https://youtu.be/SmlXF6Z1CXo If-Else: https://youtu.be/JRw2XkUjvjE If-Else introducción: https://youtu.be/YtBRCU-db_I Ciclo For de un renglón: https://youtu.be/lAKQouvVOPg Listas: https://youtu.be/Y82UMypKkng Tuplas: https://youtu.be/f0T1x1KoPMk Clases y métodos: https://youtu.be/J9jUNRYXFHk Vídeo donde revisamos el método __init__ https://youtu.be/XdO12ZWndlc Nuestra lista de reproducción de Pandas en Python https://youtu.be/JJ7BMoQotEY Nuestra lista de reproducción de Machine Learning en Python https://www.youtube.com/watch?v=b4zmSqB9npI&list=PLgHCrivozIb0HQ9oPRLVqw5scdIG-AxQL - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 📷 Imágenes Fondo en el Thumbnail: Pixabay - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 🌐 Hashtags #Python, #PythonEnEspañol

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere