Introduction to Python

Programming IV Class Exercises

Author

João Caldeira, ISTEC, Lisbon, Portugal

Published

June 19, 2023

Preface

This guide is a compilation of a long list of exercises of Python in the context of the Programming IV classes within ISTEC. It covers many aspects of the Python language, from just introductory exercises to more complex and time consuming tasks, including if statements, loops, functions, lists, dictionaries, tuples, dataframes, file and exception exercises and much more. It is mainly focused on students starting to learn the Python language, however, it can also be used by individuals with higher levels of experience. Each exercise will have the correspondent solution and eventually some alternatives to accomplish the same task.

Some exercises may start by listing the learning objectives and required reading materials, with additional references if needed. Including notes may introduce the methods and give a few examples but are less detailed than the reading materials. Some notes are important messages to complete the tasks properly.

The audience is expected to be beginners of the Python programming language but with some experience in coding and algorithms knowledge.

Note

These exercises assume the use of macOS and Visual Studio code IDE.

Author

João Caldeira is an Invited Professor at ISTEC and Associate Researcher at ISCTE-IUL in Lisbon, Portugal. https://www.researchgate.net/profile/Joao-Caldeira-2

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Creative Commons License