# The best you can do is create a new string that is a variation on the original greeting = 'Hello, world!' new_greeting = 'J' + greeting[1:] print(new_greeting) #output Jello, world!
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter