Перейти к содержанию
Изучение программирования — Python, Java, C, SQL и веб-разработка

Основы Python

Ваши первые шаги в программировании — опыт не требуется.

  • питон
  • 22 Уроки
  • 6 projects
  • 15 videos
  • Работает в вашем браузере

На этом устройстве: завершено 0 из 22 уроков

Начать курс

Каждый урок работает в вашем браузере — пишите реальный код, нажимайте «Выполнить», и задания проверяют себя сами. Бесплатно, регистрация не требуется, с переведёнными заметками, сопоставленными с английским языком.

Уроки в этом курсе

Показано 26 из 26 уроков

Part 1 You build: Project: Mad Libs

  1. Запусти его! Кнопки · Когда что-то идет не так · Когда программа ждет вас Lesson 0 · 3 обязательных заданий · ★
  2. Ваша первая программа Show text with print · Strings · Comments Lesson 1 · 3 обязательных заданий · ★ Видео
  3. Переменные A box with a name · Make a variable · Naming rules · Change a variable Lesson 2 · 3 обязательных заданий · ★ Видео
  4. Числа и операторы Two kinds of number · Add, subtract, multiply, divide · Whole-number division, remainder, powers · Order of operations Lesson 3 · 3 обязательных заданий · ★ Видео
  5. Получение ввода Ask the user with input · When your program waits · input always gives a string · Turn text into a number Lesson 4 · 3 обязательных заданий · ★ Видео
  6. Работа со строками Letters have positions · Take a slice · Length and changing case · f-strings build text Lesson 5 · 4 обязательных заданий · ★★ Видео
  7. Проект Project: Mad Libs Collect the words · Change a word · A title with a line under it Проект · ★★

Part 2 You build: Project: Guess the number

  1. Принятие решений Making a choice · Comparisons · if / elif / else · The remainder Lesson 6 · 4 обязательных заданий · ★★ Видео
  2. Подсчётные циклы Repeat with for · Counting with range · Build a total (accumulator) · Words and a number on one line Lesson 7 · 4 обязательных заданий · ★★ Видео
  3. Циклы while Loop while a condition is true · Always change the condition · break and continue · Checking before or after Lesson 8 · 3 обязательных заданий · ★★ Видео
  4. Проект Project: Guess the number One guess · Keep guessing · Print the count · The sentence Проект · ★★★

Part 3 You build: Project: Quiz with a score

  1. Lists (1-D arrays) A list holds many values · Get and change items · Add items and count them · Loop over a list Lesson 9 · 3 обязательных заданий · ★★ Видео
  2. Проект Project: Quiz with a score Two lists that match · Keep the score · Forgive the typing Проект · ★★★

Part 4 You build: Project: Rock, paper, scissors

  1. Функции Name a block of code · Give it inputs (parameters) · Send back a result (return) · return vs print Lesson 10 · 3 обязательных заданий · ★★ Видео
  2. Проект Project: Rock, paper, scissors Who wins? · Functions can use functions · Check what the player typed · Play for real Проект · ★★★

Part 5 You build: Project: Text adventure

  1. Область видимости и аргументы Local variables · Global variables · Default values · How arguments are passed Lesson 11 · 4 обязательных заданий · ★★★ Видео
  2. Dictionaries (records) Store data by name · Get and set values · A dictionary as a record · Check and loop Lesson 12 · 3 обязательных заданий · ★★★ Видео
  3. Проект Project: Text adventure A dictionary inside a dictionary · Is there a door? · Follow a list of directions · Play for real Проект · ★★★★

Part 6 You build: Project: Hangman

  1. Планирование и псевдокод Plan before you code · Decomposition · Abstraction · Structured English Lesson 13 · 3 обязательных заданий · ★★ Видео
  2. Ошибки и тестирование Three kinds of error · Syntax errors · Runtime errors · Logic errors Lesson 14 · 3 обязательных заданий · ★★★ Видео
  3. Объединение всего вместе The plan · Handy built-ins for lists · A pattern you will reuse: count items that pass a test Lesson 15 · 3 обязательных заданий · ★★★ Видео
  4. Проект Project: Hangman Plan first · Build a string letter by letter · Stop as soon as you know · The game loop Проект · ★★★★

Чтение и ресурсы

  1. Краткая история Python Where Python came from · Why the funny name · Built for people to read · Python today Чтение и ресурсы
  2. Для чего используется Python What people build with Python · Websites and apps · Data, AI, and science · Automation Чтение и ресурсы
  3. Где узнать больше Играй и практикуйся · Читай и используй как справочник · Другие курсы на этом сайте · Совет Чтение и ресурсы
  4. Настройка компьютера Run Python on your own computer · Step 1 — Install Python · Step 2 — Install VS Code · Step 3 — Add the Python extension Чтение и ресурсы
Open the Python reference Every topic in one place, with short examples you can run.

Где узнать больше

Войти или создать аккаунт

IGCSE, A-Level & AP