Khoa học máy tính & CNTTCơ bảnTiếng Anh
Python for Everyone: Your First Programs
Learn to write real Python 3 programs from scratch: variables, decisions, functions and loops, no maths needed.
SpecioKhóa học chính thức của SpecioKhóa học mới · v1
- Explain what a program is and how a computer runs Python code line by line
- Install Python 3, write programs in a text editor and run them from the terminal
- Store and calculate data with variables, expressions and type conversions
- Write programs that make decisions with if, elif and else, and recover from bad input with try and except
- Use built-in functions and define your own functions with parameters and return values
- Repeat work with while and for loops, using break and continue to control them
- Apply loop idioms to count, sum, average, filter, search and find the largest and smallest value
- Read a problem, plan the steps in plain words and build a working program in small tested pieces
Nội dung khóa học
7 chương · 47 mục · 11h 47m · 4 mục học thử miễn phí1 · Why We Program
- 1.1 Welcome: How This Course Works
- 1.2 Why Learn to Program?
- 1.3 Inside the Computer: CPU, Memory, Storage and Input/Output
- 1.4 Python as a Language
- 1.5 Quiz: Why We Program
2 · Setting Up Python
- 2.1 Running Python Right Now: The Online Playground
- 2.2 Installing Python 3 on Windows and macOS
- 2.3 Choosing a Text Editor
- 2.4 Running a .py File from the Terminal
- 2.5 Troubleshooting Common Install Problems
- 2.6 Taking a Screenshot of Your Output
- 2.7 Quiz: Setting Up Python
- 2.8 Assignment: Your First Personal Program
3 · Your First Python Program
- 3.1 Python's Vocabulary: Words, Names and Statements
- 3.2 Writing Paragraphs of Code: Scripts and the Four Patterns
- 3.3 Walkthrough: Hello World and Submitting Your Program
- 3.4 Quiz: Your First Python Program
- 3.5 Assignment: Hello World With a Twist
4 · Variables and Expressions
- 4.1 Variables: Names for Values
- 4.2 Numeric Expressions and Operator Precedence
- 4.3 Types and Type Conversion
- 4.4 Reading Input: input(), int() and float()
- 4.5 Comments: Notes for Humans
- 4.6 Your First Input-Process-Output Program
- 4.7 Worked Exercise: Building a Pay Calculator
- 4.8 Quiz: Variables and Expressions
- 4.9 Assignment: Pay Calculator
5 · Conditional Code
- 5.1 Making Comparisons: True, False and the if Statement
- 5.2 Two-Way and Multi-Way Decisions: else and elif
- 5.3 Handling Bad Input with try and except
- 5.4 Worked Exercise: Overtime Pay with Error Handling
- 5.5 Quiz: Conditional Code
- 5.6 Assignment: Score to Grade
6 · Functions
- 6.1 Using Built-in Functions
- 6.2 Building Your Own Functions with def
- 6.3 Parameters, Arguments and Return Values
- 6.4 Worked Exercise: Refactoring Pay into compute_pay
- 6.5 Quiz: Functions
- 6.6 Assignment: compute_pay Function
7 · Loops and Iteration
- 7.1 Repeating Steps with while
- 7.2 Definite Loops with for
- 7.3 Loop Idioms: Count, Sum, Average, Filter, Search
- 7.4 Finding the Largest and Smallest Value
- 7.5 Worked Exercise: Total, Count and Average
- 7.6 What's Next: Your Four Patterns and Beyond
- 7.7 Quiz: Loops and Iteration
- 7.8 Assignment: Highest and Lowest
SpecioKhóa học chính thức của SpecioProgramming · IT · Data · Business
Courses written and maintained by the Specio team.