All Projects → PacktPublishing → Learn-Python-Programming-Second-Edition

PacktPublishing / Learn-Python-Programming-Second-Edition

Licence: MIT License
Learn Python Programming – Second Edition, published by Packt

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language

Learn Python Programming – Second Edition

Learn Python Programming - Second Edition

This is the code repository for Learn Python Programming - Second Edition, published by Packt.

Build a solid foundation in coding by utilizing the language and its core characteristics

What is this book about?

Learn Python Programming creates a foundation for those who are interested in developing their skills in Python programming. The book starts with the fundamentals of programming with Python and ends by exploring different topics such as GUIs and real-world apps.

This book covers the following exciting features:

  • Get Python up and running on Windows, Mac, and Linux
  • Grasp fundamental concepts of coding using data structures and control flow
  • Write elegant, reusable, and efficient code in any situation
  • Understand when to use the functional or object-oriented programming (OOP) approach
  • Walk through the basics of security and concurrent/asynchronous programming

If you feel this book is for you, get your copy today!

https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter01.

Setup

Create a virtual environment with a Python version 3.7.*.

Installing requirements

Install all the requirements text files via pip like this:

$ pip install -r requirements.txt

Requirements for the data science chapter can be cumbersome to install so I kept them separated, in the requirements.data.science.txt file.

If you wish to install all requirements at once, just execute the following:

$ pip install -r all.txt

Updating requirements

To update requirements you can use pip-tools to compile the *.in sources in the requirements folder.

To compile and update a single .in file, run the following:

$ pip-compile -U requirements.in

If you want to compile all requirements into one single .txt file, run the following:

$ pip-compile -U -o all.txt *.in

This will read all the .in files and compile them together into the all.txt file.

The sample code will look like the following:

# we define a function, called local
def local():
    m = 7
    print(m)

Following is what you need for this book: Learn Python Programming is for individuals with relatively little experience in coding or Python. It's also ideal for aspiring programmers who need to write scripts or programs to accomplish tasks. The book takes you all the way to creating a full-fledged application.

With the following software and hardware list you can run all code files present in the book (Chapter 1-14).

Software and Hardware List

Chapter Software required OS required
1-14 Python 3.7 Windows, Mac OS X, and Linux (Any)

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.

Related products

Get to Know the Author

Fabrizio Romano Fabrizio Romano was born in Italy in 1975. He holds a master's degree in computer science engineering from the University of Padova. He is also a certified scrum master, Reiki master and teacher, and a member of CNHC.

He moved to London in 2011 to work for companies such as Glasses Direct, TBG/Sprinklr, and student.com. He now works at Sohonet as a Principal Engineer/Team Lead.

He has given talks on Teaching Python and TDD at two editions of EuroPython, and at Skillsmatter and ProgSCon, in London.

Other book by the author

Learning Python

Suggestions and Feedback

Click here if you have any feedback or suggestions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].