I am working on something in Python that reads a file and outputs some text. Let's say that I have this string:
a = "hello // world"
Using this function, I would remove the part of the string that comes after the double slash
def magic(input):
return "hello "
How could I achieve this simply in python? (Basically I want to remove everything after the //)