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
Social Sciences,
3 months ago
Math,
3 months ago
Business Studies,
8 months ago
Computer Science,
8 months ago
History,
1 year ago
English,
1 year ago