Python for Beginners - Part 3 - Number, Date and Error Handling

lucianopereira86

LUCIANO DE SOUSA PEREIRA

Posted on October 15, 2019

Python for Beginners - Part 3 - Number, Date and Error Handling

python_titulo
Third part of articles about the Microsoft's Python for Beginners series.
All the examples from the playlist are available in this GitHub repository: Python Examples.

Objective

You will learn about the operations with numbers, dates and how to handle errors.
A Python file was created to demonstrate each example.

Topics

number.py

Ex: Testing math operations with numbers and numeric strings.

code07

Running the example:

python .\examples\numbers.py

The result:

code08

date.py

Ex: Testing datetime functions and formats.

code09

Running the example:

python .\examples\date.py

The result:

code10

error_handling.py

Ex: Handling runtime errors.

code11

Running the example:

python .\examples\error_handling.py

The result:

code12

Next

You will learn how to work with conditional logics, collections and loops.

Video References

💖 💪 🙅 🚩
lucianopereira86
LUCIANO DE SOUSA PEREIRA

Posted on October 15, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related