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

Pubblicato il: 13 ottobre 2020
sul canale di: 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


In questa pagina del sito puoi guardare il video online Rules to Write a Variable Name in Python (Hindi) | The Learning Setu della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Coding Chaska 13 ottobre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 841 volte e gli è piaciuto 21 spettatori. Buona visione!