Python FAQs
What is python interpreter?
Python interpreter is basically a program that executed python codes. We can write python codes in a file and open that file in python interpreter to execute the code.
What is interactive shell?
Interactive shell a shell like command line where we can write short programs and get output on the go there only.
What is difference between IDE and code editor?
Code is simply a software in which we can write our code while IDE(intergrated development environment) is a software to write a code with some extra benefits like autocompletion, debugging and testing.
Examples of some famous code editors are VS code, sublime text and Atom while most famous IDE for python is pycharm.
What is an expression.
Expression is a piece of code that produces a value.
What are primitive data types in python.
The three primitive data types in python are numbers, Boolean and strings.
How many types of numbers are in python.
There are 3 types of numbers in python: integers, floats and complex numbers.
What are escape sequences.
\", \', \\, \n will when inserted inside quotes will price ", ', \ and newline effects respectively. These are called escape sequences.
Formatted strings
f"{expression} {expression}" Note that the space in between two curly braces matters, also we can use capital or small f/F for string formatting.
What is augmented assignment operator.
+=, -= and so on all these assignment operators are called augmented assignment operators.
Comments
Post a Comment