Predict the output of the following expression:
Str1="pen"
print(list(str1))
a) ['p', 'e', 'n']
b) [pen]
c) [p/e/n]
d) {"pen"}
Answers
Answered by
0
Answer:
A) ['p','e','n']
Explanation:
The string 'pen' is converted to list when list() is used.
Similar questions