Computer Science, asked by nomnom152314, 7 months ago

From the tuple given below
T = (0,1,2,0,4,5,0,4, 5, 6,7 ,8, ‘abc’, ‘efg’, ‘hij’)
Write a python program to:
a) Replace all 0s with the letter ”x”

Answers

Answered by faseelaandru
1

Answer:

x1 = [(i.replace(0,'x')) for i in T]

Similar questions