i need to write a function that takes an input, say "'1 large banana" and then modifys it to output (1.0, 'large', 'banana')
this is what i have written so far but it seems to be incorrect
def parse_ingredient(raw_ingredient_detail: str):
raw_ingredient_detail.split()
parse = raw_ingredient_detail.split()
return(parse[float, (0), (1)])
the goal is for it to look like this
parse ingredient(raw ingredient detail: str)
outputs: tuple[float, str, str]