Answer: Python supports scripts: programs written for a Python run-time environment that automate the execution of tasks. These tasks could alternatively be executed one-by-one by a user.
Q2 : What is Python Shell?
Answer: Python Shell is an interactive command line interface. Python statements can be executed using Python Shell.
Q3: What are
the limitations of Python?
Answer: There are certain limitations of Python, which include the following:
- It
has design restrictions.
- It
is slower when compared with C and C++ or Java.
- It
is inefficient in mobile computing.
- It
consists of an underdeveloped database access layer.
Q4: Do
runtime errors exist in Python?
Answer: Yes, runtime errors exist in Python.
Q5: Why do we need a break in Python?
Answer: Break helps in controlling the Python loop by breaking the
current loop from execution and transfer the control to the next block.
Q6: Why do we need a continue in Python?
Answer: A continue also helps in controlling the Python loop but by
making jumps to the next iteration of the loop without exhausting it.
Q7: Can we use a break and continue together in Python?
How?
Answer: Break and continue can be used together in Python. The break
will stop the current loop from execution, while jump will take to another loop.
Q8: Does Python support an intrinsic do-while loop?
Answer: No Python does not support an intrinsic do-while loop.
Q9: What are assignment operators in Python?
Answer: The assignment operators in Python can help in combining all the arithmetic operators with the assignment symbol.
Q10: How are identity operators different than the
membership operators?
Answer: Unlike membership operators, the identity operators compare the
values to find out if they have the same value or not.
0 Comments