Robotics & Artificial Intelligence

Write a Python program to perform the following tasks.

a. "Hello, my friends, I am Jeck"

b. Replace Jeck with Tiya

Python String Manipulation

1 Like

Answer

string = "Hello, my friends, I am Jeck"
new_string = string.replace("Jeck", "Tiya")
print(new_string)

Output

Hello, my friends, I am Tiya

Answered By

3 Likes


Related Questions