Knightro is planning to make an appearance at Knight-Thon and is preparing a stand-up comedy act! However, Petey has changed the script for the show! We had a list that was sorted by joke. We stored our jokes in a string, separated by two ## at the end of each joke. The beginning of the joke had the number it was sorted by. Help Knightro fix the issue by writing a function named joke_splicer. This function takes in one parameter: jokes, a list of strings that represents the jokes that Knightro will tell. Your function should return a list of jokes that is sorted by the joke's number (the number at the front of the joke). You may need to remove some whitespace with Python's strip functions.
2. Picture attached is the output template. *I have already tried to post this problem, but Chegg says there is an error every time I try to look at it. So, I am posting it again.*
def joke_splicer(jokes): # Your function here
def main():
5. HOW DO PIRATES PREFER TO COMMUNICATE? AYE TO AYEI##
3. WHERE CAN YOU FIND A PIRATE WHO HAS LOST HIS WOODEN LEGS? RIGHT WHERE YE LEFT HIM.##
7. HOW DID THE PIRATE GET HIS JOLLY ROGER SO CHEAP? HE BOUGHT IT ON SALE.##
2. WHY IS PIRATING SO ADDICTIVE? THEY SAY ONCE YE LOSE YER FIRST HAND, YE GET HOOKED.##
4. HOW MUCH DID THE PIRATE PAY FOR HIS PEG AND HOOK? AN ARM AND A LEG.##
6. HOW DO YOU MAKE A PIRATE FURIOUS? TAKE AWAY THE P.##
answer = joke_splicer(j)
print(answer)
main()