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

Oct 15, 2019

python_titulo

Third part of articles about the Microsoft’s Python for Beginners series.
You can read the part 2 here.
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


Categories:
Tags: