1.
What will be the output of the below code?
string = "Python"
print(string[2])
string[2] = 'A'
2.
Which of the below are the correct way of defining strings in Python?
3.
What will be the output of the below code?
string_1 = "Python"
string_2 = "Python"
print(id(string_1) == id(string_2))
4.
What will be the output of the below code?
multi_line = """This is a String.\nWell, It's multi-line."""
print(multi_line)
5.
What will be the output of the below code?
string_1 = "Python"
string_1 = string_1 + '1'
print(id(string_1) == id(string_2))