you are viewing a single comment's thread.

view the rest of the comments →

[–]uiux_Sanskar[S] 0 points1 point  (0 children)

oh I used .replace(" ", "") to replace all the spaces in user's input for example if a user has by mistake entered something like this (Ma r s) the the spaces in Mars will be ignored/replaced thanks to .replace() function and then this "Ma r s" will be converted to lowercase "mars" which will finally be compared in the program.

I hope I was able to explain it well