1. How will the Python Programming: Introduction certification training benefit me in my current job role?
It will help you to get a quick start into your programming career.
2. What is the exam criteria for the Python Programming: Introduction certification training course?
There is no exam for this training.
3. What you will learn in Python Programming: Introduction certification training?
- Strings and List manipulation
- Methods to Iterate through strings, lists and ranges
- Creating, reading and writing to files
- Gathering input and manipulating input/output
- Building reusable Functions with parameters and return values
- Decisions and repetition using conditional statements and loops
4. What is the usage of help() and dir() function in Python?
Help() and dir() both functions are accessible from the Python interpreter and used for viewing a consolidated dump of built-in functions.
Help() function: The help() function is used to display the documentation string and also facilitates you to see the help related to modules, keywords, attributes, etc.
Dir() function: The dir() function is used to display the defined symbols.
5. Explain split(), sub(), subn() methods of “re” module in Python.
split() – uses a regex pattern to “split” a given string into a list.
sub() – finds all substrings where the regex pattern matches and then replace them with a different string
subn() – it is similar to sub() and also returns the new string along with the no. of replacements.
6. How do you check whether the two variables are pointing to the same object in Python?
In Python, we have an operation called ‘is’ operator, which returns true if the two variables are pointing to the same object.
a = "Hello world"
c = a
a is c
7. How do you programmatically know the version of Python you are using?
The version property under sys module will give the version of Python that we are using.
8. What is PYTHONPATH?
Ans: It is an environment variable which is used when a module is imported. Whenever a module is imported, PYTHONPATH is also looked up to check for the presence of the imported modules in various directories. The interpreter uses it to determine which module to load.
8. What are python modules? Name some commonly used built-in modules in Python?
Ans: Python modules are files containing Python code. This code can either be functions classes or variables. A Python module is a .py file containing executable code.
Some of the commonly used built-in modules are:
- data time