Write a python program to replace all 0s with a letter "x" in a tuple.
Answers
Answered by
1
Answer:
Once a tuple is created, you cannot change its values. Tuples are unchangeable, or immutable as it also is called. But there is a workaround. You can convert the tuple into a list, change the list, and convert the list back into a tuple.
Similar questions
Math,
3 months ago
Biology,
3 months ago
Business Studies,
6 months ago
Computer Science,
6 months ago
History,
10 months ago
English,
10 months ago
Environmental Sciences,
10 months ago