Advanced · 4 labs
Practice loops the way Sythra uses them — while loops for grinding XP, for loops for tallies, and retry patterns. Print your answers.
Total labs
4
Completed
0
Remaining
4
Progress
0%
In this track
0 / 4 done
Some Sythra labs stay locked until you have enough XP. Every study session earns the same amount of XP. You already have: - current_xp, target_xp, xp_per_session What to do 1. Start with current_xp 2. While XP is still below the target, add xp_per_session and count +1 session 3. When XP reaches the target (or goes past), print the session count 4. If already enough XP, print 0 Examples - 80, 100, 25 → 1 - 100, 100, 25 → 0 - 0, 100, 40 → 3
Not started · 0%
Every finished lesson earns blossoms. Your profile shows the weekly total. You already have: - rewards — a list of integers Rules - Use a for loop to walk the list - Print the sum - Empty list → 0 Examples - [2, 3, 5] → 10 - [] → 0 - [1] → 1
Not started · 0%
Sythra tracks which days you finished a lab this week. You already have: - completed_days — list of booleans (True = finished that day) Rules - Use a for loop - Count how many values are True - Print the count Examples - [True, False, True] → 2 - [False, False] → 0 - [] → 0
Not started · 0%
After a lesson, Sythra lets you retry a quiz until you pass. You already have: - scores — list of quiz scores (non-empty) - passing_score Rules - Process scores in order - Count each attempt - When a score >= passing_score, print that attempt number and stop - If none pass, print the length of the list Examples - [40, 55, 70], 60 → 3 - [80], 60 → 1 - [10, 20, 30], 60 → 3
Not started · 0%