Python Basics: Variables in Python

Veröffentlicht am: 04 Dezember 2019
auf dem Kanal: Hello World
43
1

Let us think that variables are just like an empty box. So whenever you keep something in the box after some time if you check the box again it will show you the same thing you put into it. Similarly, if you assign a value to a variable it is going to show you the same value if referenced anywhere in the program (If the content of the variable is not changed).

Few cases not allowed by python while declaring a variable:
1. we cannot start a variable name with a number
2. we cannot start a variable name with special symbols (Ex. +, -, =, etc.)
3. we cannot use void space between the variable name
4. variable name can only contain alpha-numeric[A-Z, a-z, 0-9] characters and underscores [_]

Here are a few links if you want to explore more on this topic:

W3Schools: https://www.w3schools.com/python/pyth...
TutorialsPoint: https://www.tutorialspoint.com/python...
Geeks for geeks: https://www.geeksforgeeks.org/python-...


Auf dieser Seite können Sie das Online-Video Python Basics: Variables in Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Hello World 04 Dezember 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 43 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!