1. what is the output of the following code
>>> a = "hello"
>>> b = "world"
>>> print(a+b)
2. what is the output of the following code
>>> print(*range(10))
3. what is the output of the following code:
>>> fruits = ["banana","orange", "pinapple", "apple"]
>>> for i in fruits[:3]:
print(i, end = ' ')
4. what is the function of
"len"
in Python
? 5. what is the output of the following code:
>>> fruits = ("banana","orange", "pinapple", "apple")
>>> fruits[0] = "papaya"
>>> print(fruits)
6. Which of the following options result in exactly two lines
7. Is list comprehension possible in Python?
8. Is "=="
similer to "is"
in Python?