Aug-27-2018, 01:02 PM
(Aug-27-2018, 12:55 PM)Gribouillis Wrote:This also works, thanks for reply, I appericate it ! any idea on how to loop it, so the game doesnt end after one choice ?(Aug-27-2018, 12:06 PM)witch Wrote: why does it execute choice 1,2,3 at a same time?Use a list and write simply
politicians = [ryashko, poroh, yacenyuk, tymoshenko] pol1 = (int(input('Хто буде бити ? (Виберіть цифру)\n'))) pol2 = (int(input('Кого будуть бити ? (Виберіть цифру\n'))) politicans[pol1 - 1].attack(politicians[pol2 - 1])