#vision2020 #aiforeveryone #pythonnumpy :
"My Vision is to provide "AIFOREVERYONE", by creating free video courses for Artificial Intelligence ,
Machine Learning, Deep Learning and Data Science Aspirants!"
If you wish to support my #vision2020, kindly Like, Subscribe & Share this knowledge to your friends and colleagues.
Follow Me :
Materials: https://aiforevery1.com/numpy/
Udemy : https://www.udemy.com/user/vinoth-rat...
LinkedIn : / vinothrathinamautomation
Facebook : / aiforevery1
Github : https://github.com/vinothrwins
************************************************************
Playlist:
Artificial Intelligence for Beginners : • Playlist
Python for Artificial Intelligence : • Python for Artificial Intelligence(Data Sc...
Mathematics for Artificial Intelligence : • Mathematics for Artificial Intelligence
Python NumPy for Artificial Intelligence : • Python NumPy for Artificial Intelligence
Data Science Process : • Playlist
***********************************************************
Python for Beginners - This video explains about the overview of Python Identifiers and Reserved Keywords
Note: Use HD view for clear text visible
*****************************************
Agenda :
Creating Python 3 NoteBook
Creating Documentation in Jupyter NoteBook
Python Identifiers
Rules for Identifiers
Code Implementation of Identifier
Reserved Keywords
Code Implementation of Reserved Keywords
Recap and Materials Location
*****************************************
Python Identifiers
A Python identifier is a name used to identify a variable, function, class, module or other object.
(OR)
A name in Python program is called as Identifier. Which can be used for Identification purpose like variable, function, class ,module soon on.
Rules for Identifiers
An identifier is a sequence of letters such as uppercase(A to Z),lowercase(a to z),digits(0 to 9) and an underscore (_) ie “Alphanumeric “ characters.
It does not allow punctuation characters such as @, $, and % within identifiers
It is a case sensitive ( Eg: Students and student are different identifiers)
It cannot start with a digit. (Python thinks it is a number) Eg: 1student is invalid
student1 is valid
Reserved words cannot be used as identifiers.
Find the list of names which suits the rules
Rule 1 Example : Valid Identifiers
employeename
EMPLOYEENAME
employeeNAME
employee_Name
employee1
Rule 2 - Invalid Identifiers
employeename@
employeename$
employeename%
Rule 3 - Case Sensitive - Student and student are different identifiers
Student = "Vinoth"
student = "Anand"
print(Student)
print(student)
Rule 4 - It cannot start with a digit - Invalid
1Employee
Rule 5 - Reserved words cannot be used as identifiers.
if = ""
while = ""
Reserved words(Keywords)
Definition : In python some words are reserved to represent some meanings or functionality. Such type of words are called reserved words
Rules for Reserved words
All the Python keywords must be in lowercase letters only.
It Cannot use them as constant or variable or any other identifier names.
Program to print all the keywords
import keyword
print(keyword.kwlist)
Total count of the keywords
print(len(keyword.kwlist))
Note - Till the previous version the totaly number of keyword is 33.
Now 'async', 'await' are considered as new keywords in the python.
Total count is 33 + 2 = 35
['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
35
************************************************************
Kindly let me know your feedback for improvement purpose. Feel free to correct any mistakes in case !!
Happy Learning,
Vinoth Rathinam
Nesta página do site você pode assistir ao vídeo on-line Machine Learning Tutorial Python : 4. Python Identifiers and Keywords duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Vinoth QA Academy 10 Dezembro 2018, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,869 vezes e gostou 15 espectadores. Boa visualização!