Mastering Python for Web: A Beginner's Guide (Mastering Computer Science)
β Scribed by SUFYAN BIN UZAYR
- Publisher
- CRC Press
- Year
- 2022
- Tongue
- English
- Leaves
- 303
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
β¦ Synopsis
Python for Web
Python definitely tops the charts when it comes to ease of use and beginner-friendly learning curve in the world of programming languages. At the same time, Python is essential when it comes to writing system scripts, processing big data, performing mathematical computations, creating web applications, and rapid prototyping.
With this Mastering edition, we have focused especially on the usage of Python for Web. This book explores Python programming fundamentals with interactive projects, introduces core coding concepts and the basics of Python-based web development. The reader should be ready to dive deep into the world of Python for web development in no time.
Since Python positions itself in web development as a back-end language, it is usually mixed with another front-end language to build a whole website. At the same time, reasons for using Python in web development are many: it is a flexible, versatile, and highly efficient programming language with dynamic typing capacity. This book helps readers to examine Python key back-end/front-end programming techniques and guides them through implementing them when creating professional projects. Furthermore, it also focuses on teaching readers how to solve common problems and developing web services with Python frameworks such as Django and Flask.
Mastering Python for Web has a goal more ambitious than simply teaching you the ropes β it aims to help you embrace and master problem solving, which could be seen as the single most crucial skill for a coder. It offers you a focal point on starting as a beginner and growing into an expert by putting your newly acquired knowledge into practice. Programming is a hands-on skill, and this particular book helps you put your skills to test with easy to grasp tasks and examples.
Learn more about our other Mastering titles at ........
β¦ Table of Contents
Cover
Half Title
Series Page
Title Page
Copyright Page
Contents
About the Editor
Chapter 1: Introduction to Python
PYTHON 2 VS. PYTHON 3
A BRIEF HISTORY OF PYTHON
INSTALLING AND CONFIGURING PYTHON
HOW TO INSTALL PYTHON ON WINDOWS
How to Install from the Microsoft Store
How to Install from the Full Installer
HOW TO INSTALL PYTHON ON macOS
How to Install from the Official Installer
How to Install from Homebrew
HOW TO INSTALL PYTHON ON LINUX
How to Install on Ubuntu and Linux Mint
How to Install on Debian Linux
How to Install on openSUSE
How to Install on CentOS and Fedora
How to Install on Arch Linux
HOW TO BUILD PYTHON FROM SOURCE CODE
HOW TO INSTALL PYTHON ON iOS
HOW TO INSTALL PYTHON ON ANDROID
ONLINE PYTHON INTERPRETERS
REGENERATE CONFIGURE
Chapter 2: Python Data Type
Additional Methods on Integer Types
STRING DATA TYPE
SET DATA TYPE
Operators and Methods
Modifying a Set
NUMBERS DATA TYPE
Integers
Floating Point Numbers
Complex Numbers
Number Type Conversion
LIST DATA TYPE
Accessing Values in Lists
Updating Lists
Delete List Elements
Basic List Operations
Built-In List Functions and Methods
DICTIONARY DATA TYPE
Creating a Dictionary
Accessing Values in Dictionary
Updating Dictionary
Delete Dictionary Elements
Properties of Dictionary Keys
Built-in Dictionary Functions & Methods
Tuple Data Type
Accessing Values in Tuples
Updating Tuples
Delete Tuple Elements
Basic Tuples Operations
Built-in Tuple Functions
Chapter 3: Python Comments and Documentation
SINGLE LINE, INLINE, AND MULTILINE COMMENTS
HOW PYTHON MULTILINE COMMENT WORKS?
Block Comments
Shebang
PYTHON COMMENTING BEST PRACTICES
When Writing Code for Yourself
When Writing Code for Others
PYTHON COMMENTING WORST PRACTICES
HOW TO PRACTICE COMMENTING?
PROGRAMMATICALLY ACCESSING DOCSTRINGS
Single-Line Docstrings
Multi-line Docstrings
Docstring Formats
WRITE DOCUMENTATION VIA DOCSTRINGS
Paragraphs
Inline Markup
Sections
Meta-information Markup
Information Units
Inline Markup
Chapter 4: Programs, Algorithms, and Functions
PYTHON SCRIPTS AND MODULES
Whatβs the Python Interpreter?
Using the Python Command
Using the Script Filename
How to Run Python Scripts Interactively
How to Run Python Scripts from an IDE or a Text Editor
How to Run Python Scripts from a File Manager
Joining Two Strings
Format Floating Point in the String
Raise a Number To a Power
Working with Boolean Types
Use of If-Else Statement
Use of AND and OR Operators
Locating Modules
Standard Modules
Python Packages
PYTHON ALGORITHMS
How Do You Write Algorithms?
Characteristics of an Algorithm
Brute Force
Divide and Conquer
Tree Traversal Algorithms
Sorting Algorithms
Searching Algorithms
Algorithm Analysis
BASIC FUNCTIONS
DYNAMIC PROGRAMMING
Recursive Method
Top-Down Method
Bottom Down
LAMBDA FUNCTIONS
Syntax
Decorators
Chapter 5: Pythonβs Executional Model
NAMES AND NAMESPACES
SCOPES
Using the LEGB Rule
Functions: The Local Scope
Nested Functions: The Enclosing Scope
Modules: The Global Scope
Built-In Scope
MODIFYING THE BEHAVIOR OF A PYTHON SCOPE
The Global Statement
The Nonlocal Statement
Using Enclosing Scopes as Closures
Bringing Names to Scope with Import
Reviewing Unusual Python Scopes
Comprehension Variables Scope
Exception Variables Scope
Class and Instance Attributes Scope
Using Scope-Related Built-In Functions
OBJECTS AND CLASSES
Class Objects
Method Objects
Inheritance
Chapter 6: Python for Web Development
THE BASIC CONCEPTS AROUND WEB PROGRAMMING
THE DJANGO FRAMEWORK
Is Django Opinionated?
What Does Django Code Look Like?
Handling the Request (views.py)
Defining Data Models (models.py)
Rendering Data (HTML Templates)
REGULAR EXPRESSIONS
Regular Expression Objects
FLASK AND FALCON FRAMEWORKS
APPRAISAL
INDEX
π SIMILAR VOLUMES
<div> <p>Python definitely tops the charts when it comes to ease of use and beginner-friendly learning curve in the world of programming languages. At the same time, Python is essential when it comes to writing system scripts, processing big data, performing mathematical computations, creating web
<span><p>When it comes to designing and prototyping for the web, nothing beats Sketch. If you are passionate about designing UI/UX for mobile or web applications, Sketch is the way to go! And to learn Sketch, look no further than <i>Mastering Sketch: A Beginner's Guide.</i> </p><p>Sketch app lets yo
<span><p>Learning a new programming language might seem like a challenging task. You may have looked at coding in the past and felt it was too confusing and big to tackle. <i>Mastering C#: A Beginner's Guide</i> will take you, step by step, through the process of learning one of the best programming
<p><span>Mastering Git: A Beginner's Guide introduces developers of all ages to the wonderful and useful world of Git.</span></p><p><span>As far as software development is considered, the advent of Git has truly proven to be a milestone. If you are a software developer, you have probably already hea
<p><span>Mastering Flutter</span><span> helps the reader master the popular Flutter framework for rapid cross-platform app development.</span></p><p><span>Mobile applications grow in popularity every year, and developers keep looking for new tools to help them design them. A Google-backed, free and