Explanation:
General-purpose interpreted, interactive language, object-oriented and high-level programming language
Explanation:
Python source code is also available under GNU General Public License (GPL).
Explanation:
Guido van Rossum is a Dutch programmer best known as the creator of the Python programming language, for
which he was the "benevolent dictator for life" (BDFL) until he stepped down from the position in July 2018.
He remained a member of the Python Steering Council through 2019, and withdrew from nominations for the
2020 election.
Correct Answer : OPTION B, PYTHONLIBRARY
Explanation:
It tells the Python interpreter where to locate the module files imported into a program
Explanation:
It is an alternative module search path. It is usually embedded in the PYTHONSTARTUP or PYTHONPATH
directories to make switching module libraries easy.
Explanation:
PYTHONSTARTUPis an environment variable you will define specifying the location of the path to a python file.
This python script will be run by python before starting the python interactive mode (interpreter). You can use it
for various enhancements like preloading modules, setting colors.
Explanation:
It provides debug output
Explanation:
The purpose of PYTHONCASEOK is to enable finding module files on filesystems which are case-insensitive such as FAT,
or which behave in a case-insensitive manner from point of view of the programmer, such as NTFS on Windows.
Explanation:
An identifier can start with a number
Explanation:
We cannot use the float numbers in range() function. Please refer to the following articles
Explanation:
We can use * operator to repeat the string n number of times. Here in the above question, First, we repeated
string two times, and again we repeated the output string three times.
Explanation:
We can use the else block after the end of for/while loop. The else block is used to check the successful execution
of a loop. If the loop executed successfully without any issues, the else block executes.
Explanation:
Equal To operator == used to compare the values of two objects while The is operator
compares the identity of two objects.
Explanation:
Yes, Strings are immutable in Python. You cannot modify string once created. If you change a string, Python builds
a new string with the updated value and assigns it to the variable.
For example:
str1 = "first"
id(str1)
str1 = str1+ " Two"
id(str1)
Output:
140560663354704
140560640152496
Earlier str1 was pointing to memory address “140560663354704” now, it’s pointing to “140560640152496”
which means Python created a new string after you updated it.
Explanation:
The append() method appends an item to the end of the list. SO we cannot pass the index number to it.
Explanation:
We cannot add string and number together using + operator, either we can use + operator to concatenate a string or add numbers.
Explanation:
Remember, the index always starts at 0. Therefore, str [1 : 3] is “yn”
Explanation:
In Python, we can set default values for arguments. If the function is called without the argument
the default value is used.
Explanation:
The set is an unordered data structure. So you cannot access/add/remove its elements by index number.
Explanation:
Remember, the range doesn’t include a stop number in the output. Refer to Python range function
Explanation:
Using two multiplication symbols, we can make a power relationship in Python. We call ** operator as an
exponent operator. That is, in the expression 5 ** 3, 5 is being raised to the 3rd power.
Explanation:>br>
If we pass A zero value to bool() construtor, it will treat it as is false.
Any non-zero value is true.
Explanation:
We can represent integers in binary, octal and hexadecimal formats.
0b or 0B for Binary and base is 2
0o or 0O for Octal and base is 8
0x or 0X for Hexadecimal and base is 16
Explanation:
When we access tuple value using subscript atuple[start: end] operator, it will always return tuple even if we
are accessing a single value using the range of indexes