Jump to ratings and reviews
Rate this book

Python: Programming in 8 Hours, For Beginners, Learn Coding Fast: Python Language, Crash Course Textbook & Exercises

Rate this book
About This Book
"Python Programming" is a textbook for high school and college students; it covers all essential Python language knowledge. You can learn complete primary skills of Python programming fast and easily.
The textbook includes a lot of practical examples for beginners and includes exercises for the college final exam, the engineer certification exam, and the job interview exam.
"Python Programming" is a useful textbook for beginners. The straightforward definitions, the plain examples, the elaborate explanations and the neat layout feature this helpful and educative book. You will be impressed by its distinctive and tidy writing style. Reading this book is a great enjoyment!

Note
This book is only suitable for programming beginners, high school students and college students; it is not for the experienced programmers.



Table of Contents

Chapter 1
What is Python?
Download & Install Python
Configure Editor
First Python Code
The Shell Prompt
Variables
Variables & Comment
Arithmetic Operator
Assignment Operators
Comparison Operators
Logical Operators
Conditional Operator
Convert Data Type
Triple Quotes
Hands-on Project: Ticket Fare
Summary

Chapter 2
If Statement
If-else Statement
Indentation
If-elif-Statement
For-In Loops
for variable in range( )
While Loop
Continue
Break Statement
Input Texts
Pass Statement
Hands-on Project: Traffic Light
Summary

Chapter 3
Math Function
ceil( ) & floor( )
pow ( ) & sqrt ( )
Max ( ) & Min ( )
abs( ) & round( )
Function
Function with Arguments
Global & Local Variable
Global Variable inside Function
Return
Main Function
List all functions in module
Hands-on Project: Circle Area
Summary

Chapter 4
List
List Functions
Know More List
Tuple
Tuple Functions
Set
Set Functions
Dictionary
Dictionary Functions
Data Structure Review
Hands-on Project: Four Colors
Summary

Chapter 5
Strings
Escape Characters
Check String Property
Searching Functions
Formatting Functions
Stripping Functions
Splitting Functions
String Functions (1)
String Functions (2)
Regular Expressions
Regular Expression in Python
Hands-on Project: Check Input
Summary

Chapter 6
Format Value
File Directory
Open File
Read file
Write File
Append Text to File
Read the Contents
Open Web Page
Hands-on Project: Process a File
Summary

Chapter 7
Module
Import Module (1)
Import Module (2)
Built-in Module
Exceptions
Catch Exceptions
Finally
Debug
Hands-on Project: Three Flowers
Summary

Chapter 8
Class Definition
Object Declaration
Another Object
Inheritance
Overriding Method
Polymorphism
Hands-on Projec

171 pages, Kindle Edition

Published June 24, 2022

7 people are currently reading
1 person want to read

About the author

Ray Yao

538 books8 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (100%)
4 stars
0 (0%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
No one has reviewed this book yet.

Can't find what you're looking for?

Get help and learn more about the design.