DS301222 #How do you copy an object in Pyhton?

2 Likes

Really well explained @vaishu.swap10112016
Keep it up

1 Like

@vaishu.swap10112016 well explained

string = “Once in a blue moon”;
ch = ‘-’;

#Replace space with specific character ch
string = string.replace(’ ', ch);

print("String after replacing spaces with given character: ");
print(string);

@anushkananhi05

Correct keep it up.
Keep Practicing.