I am creating a small program that will first ask how many items you are using, and then let you convert each items weight in grams to pounds. my function currently works but I would like each time it loops to assign the outputs to variables so I can use them in a later function. Here is my current code
repeat = int(input("How many Items:"))
for i in range(repeat):
weight = float(input("What is the weight? "))
unit = ("pounds")
pounds = 0.00220462
converted_weight = float(weight * pounds)
formatted_float = "{:.2f}".format(converted_weight)
print(converted_weight)
print(unit)