0

I want to convert Light travels faster than sound into LIGHT travels faster than SOUND in Python.

Here is what I have tried

s = "Light travels faster than sound.This is why some people appear bright until you hear them speak"
s.replace('Light', 'LIGHT')
s.replace('sound', 'SOUND')
print(s)
Svirin
  • 564
  • 1
  • 7
  • 20
Muskaan
  • 15
  • 7

0 Answers0