Answers Graded A+
What is the syntax for a `for` loop in Python?
✔✔`for item in sequence:`
What is a tuple in Python?
✔✔A tuple is an immutable collection of elements.
What is the correct way to define a tuple in Python?
✔✔`tuple = (1, 2, 3)`
How do you access the first element of a tuple in Python?
✔✔`tuple[0]`
What will the following code output?
```python
for i in range(3):
print(i)
1
, ```
✔✔0 1 2
How can you iterate through a list using a `for` loop?
✔✔`for item in list:`
What will the following code output?
```python
my_tuple = (5, 10, 15)
for num in my_tuple:
print(num)
```
✔✔5
✔✔10
✔✔15
Can tuples contain different data types?
✔✔Yes
2