Skip to content

weekendclimber/Learn-Python-Programming-Second-Edition

 
 

Repository files navigation

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.

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781783551675

About

Learn Python Programming – Second Edition, published by Packt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 61.6%
  • Python 37.3%
  • Other 1.1%