Rules to Write a Variable Name in Python (Hindi) | The Learning Setu

Published: 13 October 2020
on channel: Coding Chaska
841
21

There are many rules we have to follow while writing a variable name. Rules are given below -

1) A variable name can be a combination of letters in lowercase (a to z) or uppercase (A to Z) or digits (0 to 9) or an underscore _
2) A variable cannot start with a digit.
3) Keywords cannot be used as a variable name.
4) We cannot use special symbols like !, @, #, $, % etc. in a variable name.
5) A variable can be of any length.

Important Note - Same rules will be applicable to function name, class name, module name. No need to worry about them for now, we will discuss them later.
Important Note - Python is a case-sensitive language.

Google Colab Notebook - https://drive.google.com/file/d/1IAbC...

Website - https://www.thelearningsetu.com
Youtube -    / thelearningsetu  
Facebook -   / thelearningsetu  
Twitter -   / thelearningsetu  
Instagram -   / thelearningsetu  
Telegram - https://t.me/thelearningsetu

Thanks for watching


On this page of the site you can watch the video online Rules to Write a Variable Name in Python (Hindi) | The Learning Setu with a duration of hours minute second in good quality, which was uploaded by the user Coding Chaska 13 October 2020, share the link with friends and acquaintances, this video has already been watched 841 times on youtube and it was liked by 21 viewers. Enjoy your viewing!