Learn Python Programming
A beginner's guide to learning the fundamentals of Python language to write efficient, high-quality code, 2nd Edition
Fabrizio Romano
- 508 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Learn Python Programming
A beginner's guide to learning the fundamentals of Python language to write efficient, high-quality code, 2nd Edition
Fabrizio Romano
About This Book
Learn the fundamentals of Python (3.7) and how to apply it to data science, programming, and web development. Fully updated to include hands-on tutorials and projects.
Key Features
- Learn the fundamentals of Python programming with interactive projects
- Apply Python to data science with tools such as IPython and Jupyter
- Utilize Python for web development and build a real-world app using Django
Book Description
Learn Python Programming is a quick, thorough, and practical introduction to Python - an extremely flexible and powerful programming language that can be applied to many disciplines.Unlike other books, it doesn't bore you with elaborate explanations of the basics but gets you up-and-running, using the language. You will begin by learning the fundamentals of Python so that you have a rock-solid foundation to build upon.You will explore the foundations of Python programming and learn how Python can be manipulated to achieve results. Explore different programming paradigms and find the best approach to a situation; understand how to carry out performance optimization and effective debugging; control the flow of a program; and utilize an interchange format to exchange data. You'll also walk through cryptographic services in Python and understand secure tokens.Learn Python Programming will give you a thorough understanding of the Python language. You'll learn how to write programs, build websites, and work with data by harnessing Python's renowned data science libraries. Filled with real-world examples and projects, the book covers various types of applications, and concludes by building real-world projects based on the concepts you have learned.
What you will learn
- Get Python up and running on Windows, Mac, and Linux
- Explore 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 OOP approach
- Cover the basics of security and concurrent/asynchronous programming
- Create bulletproof, reliable software by writing tests
- Build a simple website in Django
- Fetch, clean, and manipulate data
Who this book is for
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 shows you how to create a full-fledged application.
]]>
Frequently asked questions
Information
Concurrent Execution
- The theory behind threads and processes
- Writing multithreaded code
- Writing multiprocessing code
- Using executors to spawn threads and processes
- A brief example of programming with asyncio
Concurrency versus parallelism
Threads and processes â an overview
Quick anatomy of a thread
- User-level threads: Threads that we can create and manage in order to perform a task
- Kernel-level threads: Low-level threads that run in kernel mode and act on behalf of the operating system
- New thread: A thread that hasn't started yet, and hasn't been allocated any resources.
- Runnable: The thread is waiting to run. It has all the resources needed to run, and as soon as the scheduler gives it the green light, it will be run.
- Running: A thread whose stream of instructions is being executed. From this state, it can go back to a non-running state, or die.
- Not-running: A thread that has been paused. This could be due to another thread taking precedence over it, or simply because the thread is waiting for a long-running IO operation to finish.
- Dead: A thread that has died because it has reached the natural end of its stream of execution, or it has been killed.