Questions and Answers 100% Correct
What is the main advantage of Python over other programming languages?
✔✔The main advantage of Python is its simplicity and readability, which makes it easy for
beginners to learn and use.
What are the key features of Python?
✔✔Key features of Python include easy syntax, dynamic typing, a large standard library, and
support for multiple programming paradigms.
What is the result of `` in Python?
✔✔The result of `` is `2.5` because division always returns a float in Python.
What is the result of `5 // 2` in Python?
✔✔The result of `5 // 2` is `2` because `//` is floor division, which returns the largest integer less
than or equal to the result.
What is the purpose of the `and` operator in Python?
1
, ✔✔The `and` operator is used to combine two conditions, and it returns `True` only if both
conditions are `True`.
What is the result of `7 % 3` in Python?
✔✔The result of `7 % 3` is `1` because `%` returns the remainder of the division.
What is the purpose of the `or` operator in Python?
✔✔The `or` operator is used to combine two conditions, and it returns `True` if at least one
condition is `True`.
What is the result of `5 * 3` in Python?
✔✔The result of `5 * 3` is `15`.
How do you check the type of a variable in Python?
✔✔You can check the type of a variable using the `type()` function.
What is the difference between `is` and `==` in Python?
2