Problem:
Picture yourself as a barista experimenting with various coffee brewing methods. The program should prompt the user to input the number of methods they've tested. Following that, it should iteratively ask for the brewing time for each method. After all the times are inputted, the program ought to reveal the quickest, longest, and mean brewing durations.
Use either for or while loop.
Ito po nasimulan ko diko na alam next.
numOfMethods = int(input("Number of tested methods: "))
for n in range(numOfMethods):
n += 1
brewingTime = float(input(f"Time {n}: "))
Picture yourself as a barista experimenting with various coffee brewing methods. The program should prompt the user to input the number of methods they've tested. Following that, it should iteratively ask for the brewing time for each method. After all the times are inputted, the program ought to reveal the quickest, longest, and mean brewing durations.
Use either for or while loop.
Ito po nasimulan ko diko na alam next.
numOfMethods = int(input("Number of tested methods: "))
for n in range(numOfMethods):
n += 1
brewingTime = float(input(f"Time {n}: "))