работает с python, когда я запускаю свою программу для l oop, которая просматривает все значения за один раз и выполняет все условия elif в каждом из изменений. все, что я хотел, это один ответ за раз, я запутался, как использовать все это вместе
Weights = {
"table":5, #kg
"sofa":9, #kg
"Cupboard":15, #kg
"Ladder":7, #kg
}
print("How much weight can you lift? ")
lifting_capability = input("Enter your lifting capability"+" ")
lifting_capability_int = int(lifting_capability)
for Objects in Weights.keys():
Answer = input("Can you lift" + " " + Objects + "? " + "Y/N ")
Answer_Adjusted = Answer.lower()
for Wt in Weights.values():
if Answer_Adjusted == "y" and Wt >= lifting_capability_int:
print("mmmmm...., i don't think you can lift this much")
elif Answer_Adjusted == "n" and Wt >= lifting_capability_int:
print("Yes you can't, you know how to keep your backbone in place")
elif Answer_Adjusted == "y" and Wt <= lifting_capability_int:
print("Yes, obviously you can, its so light for you")
elif Answer_Adjusted == "n" and Wt <= lifting_capability_int:
print("Don't be so lazy, its lighter than you think")