and Answers 100% Pass
What is a program in Python?
✔✔A program in Python is a sequence of instructions that the computer can execute to perform a
specific task.
What is the Python shell?
✔✔The Python shell is an interactive environment where you can type and execute Python
commands directly.
What is the difference between a statement and an expression in Python?
✔✔A statement in Python is a command that the interpreter executes, while an expression is a
piece of code that produces a value.
What is the Python interpreter?
✔✔The Python interpreter is the program that reads and executes Python code line by line.
What is the role of the `input()` function?
1
, ✔✔The `input()` function in Python is used to get input from the user as a string.
What is the `int()` function used for?
✔✔The `int()` function is used to convert a string or other data types into an integer.
What is a variable in Python?
✔✔A variable in Python is a name that refers to a value or object in memory.
How do you assign a value to a variable in Python?
✔✔You can assign a value to a variable in Python using the `=` operator.
What is a string in Python?
✔✔A string in Python is a sequence of characters enclosed in either single or double quotes.
How do you concatenate two strings in Python?
✔✔You can concatenate two strings in Python using the `+` operator.
What is a floating-point number in Python?
2