def list_open_polls(): for poll in Poll.all(): print(f"{poll.id}: {poll.title} (создано пользователем {poll.owner})")
def list_open_polls(): for poll in Poll.all(): print(f"{poll.id}: {poll.title} (created by {poll.owner})")
def list_open_polls(): for poll in Poll.all(): print(poll)
def list_open_polls(): polls = Poll.all() for poll in polls: print(poll)