String is : 9,12;32:456Output : 9 12 32 456
Solution:-
remove_chars = [‘;’, ‘:’, ‘!’, “*”, “ “, ‘,’]str1 = “9,12;32:456”
for i in remove_chars: str1 = str1.replace(i, ‘ ‘)print( str(str1))