Python Handbook For Beginners
Реклама. ООО «ЛитРес», ИНН: 7719571260.
Оглавление
Roman Telmanovich Gurbanov. Python Handbook For Beginners
INTRODUCTION
1 How To Work With This Book?
2 Why Python?
3 Brief History
4 What Can You Create With Python?
CHAPTER ONE: LET’S GET CODING!
1 Your First Line Of Code
2 What Is a Program?
3 Print Function
4 How Does Python Read The Code?
5 Counting Program
6 Python Challenge
7 Wrapping Up Chapter One
8 Chapter One Test
CHAPTER TWO: VARIABLES
1 What is a Variable?
2 How to Create a Variable?
3 Let's Print Variable Value
4 Wrapping Up Chapter Two
5 Chapter Two Test
CHAPTER THREE: NUMBERS
1 Integers and Fractional Numbers
2 Math operators
3 Working with Numbers
4 Division Without Remainder
5 Calculation Order
6 Numbers and Variables
7 Wrapping Up Chapter Three
8 Chapter Three Test
CHAPTER FOUR: STRINGS
1 Strings in Python
2 Strings And Print Function
3 Saving Strings in Variables
4 Strings Concatenation
5 Strings Concatenation And Variables
6 String Formatting
7 Wrapping Up Chapter Four
8 Chapter Four Test
CHAPTER FIVE: BOOLEANS
1 Comparison Operators
2 True or False
3 True and False in Variables
4 Comparing Variables
5 Password Checker
6 Wrapping Up Chapter Five
7 Chapter Five Test
CHAPTER SIX: 6 CONDITIONAL STATEMENTS
1 What Are Conditional Statements?
2 If Statement
2.1 If Statement And Comparison Operators
2.2 If Statement And Numbers
3 Else Statement
4 Elif Statement
5 Sequence Of If, Elif, And Else Statements
6 Wrapping Up Chapter Six
7 Chapter Six Test
CHAPTER SEVEN: LOOPS
1 Introduction To Loops
2 While Loop
3 How to Stop The While Loop
4 While Loop And Comparison Operators
5 While Loop And Countdown
6 For Loop
7 Wrapping Up Chapter Seven
8 Chapter Seven Test
CHAPTER EIGHT: LISTS
1 Introduction To Lists
2 List Index
3 How To Retrieve a Value From a List
4 Concatenation Of List Values
5 List Functions
6 Len Function
7 Append Function
8 List Concatenation
9 Tuples
10 How to Convert a Tuple Into a List
11 How to Convert a List Into a Tuple
12 Wrapping Up Chapter Eight
13 Chapter Eight Test
CHAPTER NINE: DICTIONARIES
1 Dictionaries In Python
2 Dictionary Format
3 Adding Pairs To The Dictionary
4 Removing Pairs From The Dictionary
5 How To Get a Value By Key?
6 How To Get a Key By Value?
7 How To Check If a Dictionary Has a Key?
8 How To Get The Length Of a Dictionary?
9 Wrapping Up Chapter Nine
10 Chapter Nine Test
CHAPTER TEN: FUNCTIONS
1 Functions In Python
2 Parameters And Arguments
3 How To Return a Value From a Function?
4 Nested Functions
5 Wrapping Up Chapter Ten
6 Chapter Ten Test
CHAPTER ELEVEN: CLASSES AND OBJECTS
1 Introduction To Classes And Objects
2 How To Create a Class?
3 Class Properties
4 Class Functions
5 Creating Class Objects
6 Class Objects Relationships
7 Wrapping Up Chapter Eleven
8 Chapter Eleven Test
CHAPTER TWELVE: MODULES AND PACKAGES
1 Modules
2 How To Import a Module
3 How To Import a Module Function
4 Function Name
5 How To Create a Module?
6 Module Package
7 Wrapping Up Chapter Twelve
8 Chapter Twelve Test
CHAPTER THIRTEEN: TESTS ANSWERS
Chapter One Test Answers
Chapter Two Test Answers
Chapter Three Test Answers
Chapter Four Test Answers
Chapter Five Test Answers
Chapter Six Test Answers
Chapter Seven Test Answers
Chapter Eight Test Answers
Chapter Nine Test Answers
Chapter Ten Test Answers
Chapter Eleven Test Answers
Chapter Twelve Test Answers
EPILOGUE
Отрывок из книги
This book suggests 11 themes that, once mastered, will give you basic skills in Python programming. These themes are arranged according to their difficulty level, from simple to more complex. If you wish to skip chapters, you are welcome to do so but bear in mind that every chapter contains concepts given in preceding chapters.
To get the most of this book, I highly recommend creating your version of every code given in the book. Tweak the code and see how it affects the output of the program.
.....
5) Created a few simple programs;
6) Finally, we learned and applied the print function.
.....