Python Crash Course
Learn Python from zero: write real programs step by step, right in your browser.
- 0 students
- 132 lessons
- 7 h 10 min
Created by Ayim Nelson
What you will learn
- Write and run Python programs, and read their errors
- Store data in variables and work with text and numbers
- Make decisions with if, elif and else
- Repeat work with for and while loops
- Organise data in lists, tuples, sets and dictionaries
- Write your own functions and handle errors with try and except
- Work with dates, JSON data and regular expressions
- Build classes, use inheritance and polymorphism, and write iterators
About this course
Python is one of the easiest programming languages to start with, and one of the most used: for websites, data, automation and AI. In this course you learn it by writing code: short lessons, quick checks and small programs you run right here in your browser.
For: complete beginners. No setup, no experience needed.
By the end: you will have built your own student grade book program.
Course content
11 sections · 132 lessons
Getting started8 lessons
- What is Python?PreviewReading · 2 min
- Your first line of PythonPreviewReading · 2 min
- Top to bottomPreviewReading · 2 min
- Where your code runsPreviewReading · 2 min
- Syntax and case sensitivityReading · 2 min
- CommentsReading · 3 min
- IndentationReading · 2 min
- Your first programExercise · 6 min
Variables and data types19 lessons
- VariablesReading · 3 min
- Naming variablesReading · 3 min
- Data typesReading · 4 min
- Simpler types than other languagesReading · 2 min
- Numbers: int, float and complexReading · 4 min
- StringsReading · 2 min
- Quotes inside stringsReading · 2 min
- Escape charactersReading · 3 min
- Joining stringsReading · 2 min
- f-stringsReading · 3 min
- Converting between typesReading · 3 min
- How bool() decidesReading · 2 min
- Maths operatorsReading · 3 min
- Division and order of operationsReading · 2 min
- Updating a variableReading · 2 min
- Getting input from the userReading · 2 min
- Numbers from inputReading · 2 min
- Yes or no questionsReading · 2 min
- Build a calculatorExercise · 10 min
Making decisions13 lessons
- Comparison operatorsReading · 3 min
- Logical operatorsReading · 3 min
- Membership operatorsReading · 2 min
- Identity operatorsReading · 3 min
- Bitwise operatorsReading · 3 min
- All the operator groupsReading · 2 min
- if statementsReading · 3 min
- elseReading · 3 min
- elifReading · 3 min
- Truthy valuesReading · 2 min
- Nested ifReading · 3 min
- passReading · 2 min
- Grade checkerExercise · 10 min
Loops13 lessons
- for loopsReading · 3 min
- Looping through a stringReading · 2 min
- Loops with ifReading · 2 min
- range()Reading · 3 min
- breakReading · 2 min
- continueReading · 2 min
- Loop elseReading · 2 min
- pass in loopsReading · 1 min
- Nested loopsReading · 2 min
- while loopsReading · 3 min
- Limited tries with whileReading · 3 min
- continue in a while loopReading · 2 min
- Times tableExercise · 8 min
Lists15 lessons
- ListsReading · 2 min
- List indexesReading · 3 min
- Checking if an item is in a listReading · 2 min
- Lists are Python's arraysReading · 2 min
- Slicing listsReading · 6 min
- Changing a list itemReading · 2 min
- Changing a range of itemsReading · 3 min
- Inserting itemsReading · 2 min
- Adding itemsReading · 3 min
- Removing itemsReading · 3 min
- Sorting and searching listsReading · 3 min
- Looping through listsReading · 3 min
- sum(), min() and max()Reading · 2 min
- Building a new listReading · 3 min
- Class scoresExercise · 10 min
Tuples, sets and dictionaries13 lessons
- TuplesReading · 3 min
- Tuples with one itemReading · 1 min
- Unpacking a tupleReading · 2 min
- SetsReading · 3 min
- Adding and removing set itemsReading · 2 min
- Removing duplicates with set()Reading · 2 min
- Comparing setsReading · 2 min
- DictionariesReading · 3 min
- Changing a dictionaryReading · 2 min
- Looping through dictionariesReading · 3 min
- A list of dictionariesReading · 2 min
- Counting with a dictionaryReading · 2 min
- Shop stockExercise · 10 min
Functions17 lessons
- Built-in functionsReading · 2 min
- String methodsReading · 3 min
- Searching inside stringsReading · 2 min
- split()Reading · 2 min
- join()Reading · 2 min
- Indexing and slicing stringsReading · 2 min
- f-string expressionsReading · 2 min
- Format specifiersReading · 4 min
- The format() methodReading · 2 min
- Defining a functionReading · 3 min
- Parameters and argumentsReading · 2 min
- Returning a valueReading · 3 min
- Default parameter valuesReading · 2 min
- Keyword argumentsReading · 2 min
- Scope: local and globalReading · 3 min
- Lambda functionsReading · 2 min
- Receipt makerExercise · 10 min
Errors and modules11 lessons
- Reading an errorReading · 2 min
- try and exceptReading · 3 min
- else and finallyReading · 2 min
- Asking until the input is rightReading · 2 min
- Built-in maths functionsReading · 2 min
- The math moduleReading · 3 min
- Other ways to importReading · 2 min
- The random moduleReading · 2 min
- Your own modulesReading · 2 min
- pip: installing packagesReading · 3 min
- Safe divisionExercise · 8 min
Dates, JSON and RegEx12 lessons
- Making datesReading · 3 min
- Formatting dates with strftime()Reading · 3 min
- Reading dates with strptime()Reading · 2 min
- Date maths with timedeltaReading · 2 min
- What is JSON?Reading · 2 min
- JSON to Python: json.loads()Reading · 2 min
- Python to JSON: json.dumps()Reading · 2 min
- JSON and Python typesReading · 2 min
- What is RegEx?Reading · 3 min
- RegEx patternsReading · 3 min
- Checking input with fullmatch()Reading · 3 min
- Sign-up checkerExercise · 12 min
Classes and objects9 lessons
- Classes and objectsReading · 3 min
- Attributes and methodsReading · 3 min
- InheritanceReading · 7 min
- PolymorphismReading · 2 min
- Methods with the same nameReading · 3 min
- Polymorphism with inheritanceReading · 2 min
- IteratorsReading · 3 min
- Making your own iteratorReading · 4 min
- Bank accountExercise · 10 min
Final project2 lessons
- Final quizQuiz · 10 min
- Mini project: student grade bookExercise · 25 min
Reviews
No reviews yet.
Comments
Log in to join the conversation.
Loading comments...