Basic Python 5: Python Keywords and Identifiers

Published: 12 September 2022
on channel: Testing Tutorialspoint
67
3

Python Keywords and Identifiers:
--------------------------------
Keywords:

Keywords are the reserved words in Python.

We cannot use a keyword as a variable name, function name or any other identifier.

keywords are case sensitive.

All the keywords except True, False and None are in lowercase and they must be written as they are.

False await else import pass
None break except in raise
True class finally is return
and continue for lambda try
as def from nonlocal while
assert del global not with
async elif if or yield

Identifiers:
------------
identifier is a name given to entities like class, functions, variables, etc. It helps to differentiate one entity from another.

Rules for writing identifiers:

1. Identifiers can be a combination of letters in lowercase (a to z) or uppercase (A to Z) or digits (0 to 9) or an underscore _. Names like myClass, var_1 and print_this_to_screen, all are valid example.

ex: my_first_varaible

2. An identifier cannot start with a digit. 1variable is invalid, but variable1 is a valid name.

3. Keywords cannot be used as identifiers.
ex:
global = 1

4. We cannot use special symbols like !, @, #, $, % etc. in our identifier.
ex:
a@ = 0

5. An identifier can be of any length.
__________________ API Automation _________________
➡️ Rest Assured Using Java →    • Rest Assured  
➡️ Karate Framework using Maven →    • Karate Framework Using Maven Project  
_____________ Programing Language ____________________
➡️ Basic Python →    • Basic Python  
➡️ Core Java →    • CoreJava  
___________ Performances Testing ___________________
➡️ JMeter Beginner →    • JMeter Beginner  
➡️ Locust Beginner →    • Locust  
___________ Git and GitHub _____________________________
➡️ Git and GitHub Beginner →    • Git and GitHub Beginner  

_____________Manual Testing ____________________
➡️ Manual Testing →    • Manual Testing  

______________Automation Testing __________________
➡️ Selenium Cucumber Framework using Java →    • Selenium Cucumber BDD Framework with Java ...  
➡️ Robot Framework with Python →    • Python With Robot Framework  
➡️ Beginner Karate Framework using Intellij →    • Karate Framework Beginner  
➡️ Karate Framework with Gradle using eclipse →    • Karate Framework using Gradle Project  
➡️ Basic Selenium WebDriver using Java →    • Selenium WebDriver  
➡️ TestNG Framework →    • TestNG Framework  
➡️ Robot Framework with RIDE →    • RIDE With Robot Framework  
________________ Beginner Jenkins ____________________
➡️ Beginner Jenkins →    • Beginner Jenkins  


On this page of the site you can watch the video online Basic Python 5: Python Keywords and Identifiers with a duration of hours minute second in good quality, which was uploaded by the user Testing Tutorialspoint 12 September 2022, share the link with friends and acquaintances, this video has already been watched 67 times on youtube and it was liked by 3 viewers. Enjoy your viewing!