poproszę o naj :)
for elemet, il in zip([[input(f"podaj nazwę {i + 1} produktu >> "),int(input(f"podaj cene {i + 1} >> "))] for i in range(3)], (2,3,0.5)): print(f"{elemet[0]} - cena za kg {elemet[1]}\ncena za {il}kg - {il * elemet[1]}")
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
poproszę o naj :)
for elemet, il in zip([[input(f"podaj nazwę {i + 1} produktu >> "),int(input(f"podaj cene {i + 1} >> "))] for i in range(3)], (2,3,0.5)): print(f"{elemet[0]} - cena za kg {elemet[1]}\ncena za {il}kg - {il * elemet[1]}")