Python for Beginners: 2018 Edition: Learn to Code with Python!
β Scribed by Mark Lassoff; Julius Hernandez
- Year
- 2018
- Tongue
- English
- Leaves
- 210
- Category
- Library
No coin nor oath required. For personal study only.
β¦ Table of Contents
Chapter 1 β Introduction
Intended Audience
What Does the Book Cover?
Important Things to Remember
Chapter 2 β Getting Started
Downloading and Installing Python
Running IDLE
Writing Your First Python Program
Running the Program
Editing your First Program
Using the Shell Window
To Change the Editorβs Various Font-Related Features
To Change the Editorβs Highlighted Text Colors
To Use the Shell in Interactive Mode
Writing Code in the Editor Window
Executing Python on the Command Line
Coding Exercise: Writing, Running and Debugging
Chapter 3 β Output
The print() Function
Separators and Newlines
Coding Exercise: Using the print() Function
Chapter 4 β Variables
Variable Assignment
Number Variables (int, float, and complex)
That wraps up our section on number variables. You will learn about string variables next.
String Variables
Substrings and Concatenation
Variables with Lists, Tuples, and Dictionaries
Coding Exercise: Using Variables
Chapter 5 β Operators
Mathematical Operators
Order of Operations
Comparison Operators
Logical Operators
Coding Exercise: Operators Practice
Chapter 6 β Code Branching
Simple If Statements
Ifβ¦Else Statements
Nested If Statements
The Ternary Operator
Coding Exercise: Operators Practice
Chapter 7 β Loops
The While Loop
The For Loop
Nested Loops
Break and Continue Statements
Coding Exercise: Loops
Chapter 8 β Math Functions
Casting Functions
Mathematical Functions
Random Functions
Coding Exercise: Math Functions
Chapter 9 β String Functions
The capitalize (), center (), and count () functions
The find (), isalpha (), and isdigit () functions
The join (), len (), and split () functions
Coding Exercise: String Functions
Chapter 10 β Tuples and Dictionaries
Creating Tuples
Accessing Values in Tuples
Printing specific values from a tuple
Looping through a Tuple
Tuple Functions
What are lists?
The len() Function
Using the len() Function to Loop through a Tuple
The min() and max() Functions
You can use the min() and max() functions to return the minimum and maximum values in a tuple. Letβs try to show this using an example.
Converting a List to a Tuple
Declaring a Dictionary
Accessing and Editing Values in Dictionaries
Printing specific values from a dictionary
Changing the elements in a dictionary
Deleting an element in a dictionary
Dictionary Functions
The len() Function
The str() Function
The clear() Function
The get function
The items function
The values function
The keys function
Getting the Elements and Key-Value Pairs in a Dictionary
Coding Exercise: String Functions
Chapter 11 β Time and Date
The Time Tuple
The Calendar
The Time and Calendar Functions
Coding Exercise: Functions
Chapter 12 β Python Functions
Defining and Calling a Simple Function
Required Argument Functions
Keyword Argument Functions
Default Function Arguments
Return Statement
Creating and Consuming Python Modules
Coding Exercise: Functions
Chapter 13 β Input and Output
Reading Keyboard Input
Reading an External Text File
Writing an External Text File
Coding Exercise: File I/O
Chapter 14 β More with Python
Handling Exceptions
Web Server Coding with Python
Processing Form Data with Python
Wrap Up and Goodbye
π SIMILAR VOLUMES
<span>Decode the Mystery of Coding</span><span><br><br>Python is the worldβs most popular coding language not only for software developers but also for scientists, mathematicians, and even kids. </span><span>Python should be the 1st programming language you learn.</span><span> Creating your own apps
In this Definitive Python Guide, you're about to discover...<br><br>How to program code in Python through learning the core essentials that every Python programmer must know. Python is a very popular programming language, and there are a great many books on the market concerning it. We cut to the ch
<h2><span>The world of Python programming is booming! Get a slice of the action.</span></h2><p><span>Have you always wanted to be a part of the programming world, but things seem confusing and complicated so youβve never gone through with it? </span></p><p><span>Are you hoping to get a career in pro