Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Python Indentation (Python Tutorials for Beginners #3)

  • Olum Bootcamp
  • 2022-12-07
  • 198
Python Indentation (Python Tutorials for Beginners #3)
Olum Boot Camp@olum bootcamppython indentationpython indentation error
  • ok logo

Скачать Python Indentation (Python Tutorials for Beginners #3) бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Python Indentation (Python Tutorials for Beginners #3) или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Python Indentation (Python Tutorials for Beginners #3) бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Python Indentation (Python Tutorials for Beginners #3)

Hello! Today, I am going to tell you what is python indentation, why is python indentation important, and how you can avoid indentation errors.

Python is very big on indentation. Python indentation is used to indicate a block of code. In some programming languages such as R, Java, and C, a block of code is usually indicated by curly braces. In such programming languages, indentation has no meaning other than for spacing and ensuring that the code is readable.

A block of code in python refers to a collection of statements and codes that are in the same block or indent.

Python does not explicitly specify the amount of spaces that you leave before a particular line of python statements or code. It can be one, two, three, etc so long as you use the same number of spaces in all the lines within that block of code. However, by convention, python indentation is usually defined by leaving four spaces before a particular in line in the block of code. Therefore, we recommend sticking to the convention.

Python indentation is usually applied when you are using the following python keywords:
if, else, elif - Used when writing Python conditional expressions.
for, while - Used when writing Python loop.
def - Used when creating or defining Python functions.
class - Used when creating or defining Python classes.
try, except, finally - Used when writing Python exceptions in your program.
with - Used when dealing Python files input/output (i/o)

To avoid indentation errors, make sure:
1. If you use a colon symbol at the end of a line of code in python, you will need to indent the line or lines that follow it.
2. If you have multiple lines inside an if, else, elif, for, while, def, class, try, except, finally, and with block of code, you will need to indent all the code in that block, and all the indentation will have to be the same, i.e four spaces.
3. If a line does not follow a line that has a colon symbol at the end of it, you should not indent that particular line.

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]