How to win quiz with python and semantic wikipedia1 points·by toppy·il y a 17 ans·0 commentsTask: Give the names of all Polish kings that died in a battle.Python:for king in history.sets.PolishKings: if king.died_in_the_battle(): print king.nameWhere one can find such set: history.sets.PolishKings?0 commentsPost comment—
Python:
for king in history.sets.PolishKings: if king.died_in_the_battle(): print king.name
Where one can find such set: history.sets.PolishKings?