What is a pass in Python

Python Pass Python Pass statement is used to pass by without the execution of current iteration in between the loop. Syntax: loop/conditions statements: statements pass Example: //pythonexample.py print “Extracting terms from word ALPHA_NUMERIC.CHARACTERS:” for x in “ALPHA_NUMERIC. CHARACTERS”:   if x == “.”: print “n” continue   if x == Read more…

What is continue used for in Python

Pyhton continue Python Continue statement is used to skip the execution of current iteration in between the loop. Continue statement breaks the continuity of the current iteration only, i.e, next iterations will not get affected because of Continue statement in current iteration. Syntax: loop/conditions statements: statements continue Example: //pythonexample.py print Read more…

How do I stop break in Python

Python break Python Break: Python break statement is used to break the execution of current loop in between the loop. Break statement breaks the continuity of the containing loop only, i.e, external loops will not get affected because of Break statement in inner loop. Syntax: loop/conditions statements: statements break Example: Read more…

What is nested in Python

Python nested if Python If Else statement is a conditional statement, which can be used in various forms to check a condition or multiple conditions and to perform the specified action or actions, if the particular condition is true. These are: ..elif….else or nested if: If elif else statement is Read more…

What are Python literals

Python literals Literals are the constant values or the variable values used in a Python code. There are mainly five types of literals used in PYTHON: String Literals Numeric Literals Boolean Literals Special Literals Collection Literals String literals: In Python, String literals are characterised either by single quotation marks, or Read more…

What is keywords in Python

Keywords Python There is a list of words already defined in Python library. These reserved words are called as Python Keywords. Every keyword is defined to serve a specific purpose. These keywords when used in Python codes performs a specific operation during compilation. A Keyword in Python is restricted to Read more…

How do I get the Python path

Python path Python is a programming language created by Guido van Rossum for web development, software development, mathematics operations and system scripting. Setting a specific path for python means to provide the Operating System a direction to search the executable code from the list of directories available in the Operating Read more…