Variables in Python | Python Tutorial for Beginners

Pubblicato il: 25 marzo 2021
sul canale di: Codenut
18
7

Assalamualaikum everyone.

Variable is very important in every programming language. It makes programming much much easier for programmers.

Variable is the name of the location in computer memory where our data is stored.

We can assign integer number, floating point number and string in our variable.

Though you can name your variable anything you want, there are some rules to follow,

1. The name of the variable must always start with either a letter or an underscore(_). For example : num, str, _str, _num etc.
2. The name of the variable cannot start with a number. For example : 3num, it cannot be a variable.
3. The name of the variable cannot have special characters. Such as, #, $, & etc. Variable can only have alphanumeric characters and underscore.
4. Variable name is case sensitive in Python. That means, ‘str’, ‘Str’ are two different variables in Python.

Thank you so much for watching my video.


In questa pagina del sito puoi guardare il video online Variables in Python | Python Tutorial for Beginners della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Codenut 25 marzo 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 18 volte e gli è piaciuto 7 spettatori. Buona visione!