Examveda

What will be the output of the following code:
string = "Hello, world!"
print(string.replace("o", "i"))

A. Helli, wirld!

B. Hell, wirld!

C. Hii

D. Hello, world!

Answer: Option C


This Question Belongs to Python Program >> Strings In Python

Join The Discussion

Related Questions on Strings in Python