Python Programming Exercises,
Gently Explained
2
than enough to prepare you for these exercises. You can find these books for free at
https://inventwithpython.com. I also recommend
Python Crash Course by Eric Matthes as an excellent book
for people with no programming experience. These books are published by No Starch Press, which
has an extensive library of high-quality Python books at
https://nostarch.com/catalog/python.
To solve the exercises in this book, you should already know, or at
least be familiar with, the
following Python programming concepts:
Downloading and installing the Python interpreter
Entering Python code into the interactive shell and into
.py source code files
Storing values in variables with the = assignment operator
Knowing the difference between data types
such as integers, strings, and floats
Math, comparison, and Boolean operators such as +, <=, and not.
How Python evaluates expressions such as (2 * 3) + 4 or 'Sun' + 'day'
Getting and displaying text with the input() and print() functions
Working with strings and string methods such as upper() or startswith()
Using if, elif, and else flow control
statements
Using for loops and while loops, along with break and continue statements
Defining your own functions with parameters and returning values
Using data structures such as lists, tuples,
and dictionaries
Importing modules such as math or random to use their functions
You don’t need a mastery of classes and object-oriented programming. You don’t need to know
advanced concepts such as machine learning or data science. But if you’d like to eventually build your
skills to advanced topics like these, this book can help you start along that path.
Even if you’ve moved past the beginner stage, this book can help you assess your programming
ability. By the time you’re ready to start applying to junior software developer positions, you should be
able to solve all of the exercises in this book easily.
Dostları ilə paylaş: