Python full Course in Hindi Explanation || Keywords and Identifiers ?|| Code with Altu
Python full Course in Hindi Explanation || Keywords and Identifiers ?|| Code with Altu
=====================================
In this tutorial, we will learn about keywords (reserved words in Python) and identifiers (names given to variables, functions, etc.).
Python Keywords
Keywords are predefined, reserved words used in Python programming that have special meanings to the compiler.
We cannot use a keyword as a variable name, function name, or any other identifier. They are used to define the syntax and structure of the Python language.
All the keywords except True, False and None are in lowercase and they must be written as they are. The list of all the keywords is given below.
Python Keywords List FalseawaitelseimportpassNonebreakexceptinraiseTrueclassfinallyisreturnandcontinueforlambdatryasdeffromnonlocalwhileassertdelglobalnotwithasyncelififoryield
Looking at all the keywords at once and trying to figure out what they mean might be overwhelming.
If you want to have an overview, here is the complete list of all the keywords with examples.
Python Identifiers
Identifiers are the name given to variables, classes, methods, etc. For example,
language = 'Python'
Here, language is a variable (an identifier) which holds the value 'Python'.
We cannot use keywords as variable names as they are reserved names that are built-in to Python. For example,
continue = 'Python'
The above code is wrong because we have used continue as a variable name. To learn more about variables, visit Python Variables.
Rules for Naming an Identifier
Identifiers cannot be a keyword.
Identifiers are case-sensitive.
It can have a sequence of letters and digits. However, it must begin with a letter or _. The first letter of an identifier cannot be a digit.
It's a convention to start an identifier with a letter rather _.
White Space are not allowed.
We cannot use special symbols like !, @, #, $, and so on.
Some Valid and Invalid Identifiers in Python
Valid IdentifiersInvalid Identifiersscore@corereturn_valuereturnhighest_scorehighest scorename11nameconvert_to_stringconvert to_string
Things to Remember
Python is a case-sensitive language. This means, Variable and variable are not the same.
Always give the identifiers a name that makes sense. While c = 10 is a valid name, writing count = 10 would make more sense, and it would be easier to figure out what it represents when you look at your code after a long gap.
Multiple words can be separated using an underscore, like this_is_a_long_variable.
=======================================
Follow the telegram channel for study materials ?https://t.me/Genius_met
Instagram: https://instagram.com/mohamedalam89?igshid=ZDdkNTZiNTM=
❤️❤️❤️❤️❤️❤️❤️ Subscribe ❤️❤️❤️❤️❤️❤️
© Copyright 2023, Altamash .All rights reserved
Like❤️ | Share ? | Subscribe ?.
Thanks for Watching ???
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Python full Course in Hindi Explanation || Keywords and Identifiers ?|| Code with Altu», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.