Computer Science, asked by shaikzafir8, 8 months ago

Write a python program to replace all 0s with a letter "x" in a tuple.

Answers

Answered by hargunpreetKaur
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
Science, 3 months ago