Python #1 Easy Tutorial for absolute beginners - identifiers and variable declaration

Publicado em: 27 Junho 2020
no canal de: sulfursoft
66
3

#python #Django #DjangorestFramework#codingprogramming#AI#machinelearning#leavethejobandstartcoding
A name in Python program is called identifier
Python uses = to assign value to variable
No need to declare the data type of variable in python
Assigning initial value is compulsory
The only allowed character in python are
Alphabet Symbols(Either upper case or lower case)
Digits(0-9)
Underscore symbol (_)
If we use special symbol then we will get a syntax error
Identifier should not start with digit
Identifiers are case sensitive
If identifier starts with _ symbol then it will be a private variable
Reserved key words are not allowed to use as variable name/identifier
There is no length limit for identifier
Example of different valid and invalid python identifiers
If an identifier starts with double underscore (__) then it is called strongly private variable
If identifier starts with double underscore and ends with double underscore then it is called magic method. (__name__, __str__, __add__)


Nesta página do site você pode assistir ao vídeo on-line Python #1 Easy Tutorial for absolute beginners - identifiers and variable declaration duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário sulfursoft 27 Junho 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 66 vezes e gostou 3 espectadores. Boa visualização!