Computer Science, asked by jagdishsingh01k, 7 months ago

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 niranjanasathish
0

Answer:

A) ['p','e','n']

Explanation:

The string 'pen' is converted to list when list() is used.

Similar questions