Python Using Databases in Python Meet Peewee First Queries

Vishnu Pratap
Vishnu Pratap
2,713 Points

Unable to solve task 2 in

Please help to to solve this task
from models import Challenge
for challenge in all_challenges:

1 Answer

ghaith omar
ghaith omar
16,395 Points


he asked to put all the challenges inside challenge class into the all_challenges variable, not to make one so you must select the challenges for the class like this:

all_challenges = Challenge().select()

it use the select method in the class challenge to save all challenges inside the variable .