Given a word that contains only two kinds of characters, either ‘T’ or ‘F’. Write a program to change all the ‘T’s with the digit 1 and all the ‘F’s with the digit 0.
TFT
101
TTTFF
11100
FFTF
0010
Test your solution here
when it passes, copy it and submit it here so your coach can grade it.