Which of the following is the correct way to create a variable in Python?
Analysis & Theory
In Python, variables are created when you assign a value using `=`, like `x = 5`.
What will be the type of `x` after this code: `x = 3.5`?
Analysis & Theory
`3.5` is a decimal number, so Python assigns it the `float` type.
Which of the following is NOT a valid variable name in Python?
Analysis & Theory
Variable names cannot start with a number in Python, so `1value` is invalid.
What will be the output of this code?
```python
x = 10
y = x
print(y)
```
Analysis & Theory
`y` is assigned the value of `x`, which is 10, so `print(y)` outputs 10.
Which of these statements reassigns a new value to a variable?
Analysis & Theory
`x = 20` assigns a new value to variable `x`.
What will the following code print?
```python
x = 'Python'
y = x
x = 'Java'
print(y)
```
Analysis & Theory
`y` stores the original value of `x`, which is `'Python'`. Changing `x` later doesn't affect `y`.
Which of the following is a dynamically typed language?
Analysis & Theory
Python is dynamically typed, meaning you don't need to declare variable types explicitly.
Which of the following correctly assigns multiple variables at once?
Analysis & Theory
You can assign multiple values to multiple variables using comma-separated assignment like `x, y = 10, 20`.
How do you delete a variable in Python?
Analysis & Theory
Use the `del` keyword to delete a variable: `del x`.
What will be the output of this code?
```python
x = '10'
y = 5
print(x * y)
```
Analysis & Theory
Multiplying a string by an integer in Python repeats the string: `'10' * 5` results in `'1010101010'`.