Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
Given a positive integer num, write a function that returns True if num is a perfect square else False.
Python
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);