Which of the following statements converts a tuple into a list?
len(string)
list(string)
tup(list)
dict(string)
Answers
Answered by
11
Answer:
hi..
Explanation:
list(string) is the correct answer...
(as len will return the length of the string..
tuple will convert the list into tuple
dict converts string into a dictionary..)according to your statements..
hope it helps you..
Answered by
0
Answer:
The statements which convert a tuple into a list are tup(list) and dict(string).
Explanation:
- Tuples are used to store multiple items in a single variable and it is a finite ordered list of elements.
- A sequence of n-tuple of n elements, where n is a non-negative integer. There is only 1 zero-tuple, referred to as the empty tuple.
- A sequence or a list is an abstract data type, a record of names or things, that represents a finite number of ordered or unordered values, where the identical value may occur.
Hence, the correct answer are option (c) and option (d) i.e. tup(list) and dict(string).
#SPJ3
Similar questions
Social Sciences,
4 months ago
Science,
4 months ago
Chemistry,
4 months ago
Physics,
8 months ago
Science,
8 months ago
Biology,
11 months ago
Social Sciences,
11 months ago