
Question: Please download the attached urls.txt file. The file contains some broken URLs. Here's what the file contains:
https:/www.google.com https:/www.yahoo.com https:/www.stackoverflow.com https:/www.pythonhow.com
Please use Python to remove the "s" from "https" and add another forward slash next to the existing slash, so the content looks like in the expected output.
Expected output:
http://www.google.com http://www.yahoo.com http://www.stackoverflow.com http://www.pythonhow.com

Hint 1: To remove the first occurrence of a character in a string, you would use "sample".replace("s", "", 1)

Hint 2: To add a character somewhere in a string, you could do something like "sample"[:2] + "x" + "sample"[2:] .