Sythra
All tracks

Advanced · 4 labs

Sythra Stats Lab: Variables

Build the numbers behind every learner profile — XP totals, level lines, blossom wallets, and welcome cards for Sythra. Write normal Python scripts and print your answers.

Total labs

4

Completed

0

Remaining

4

Progress

0%

In this track

Labs

0 / 4 done

Lab 01Easy

XP Counter

When a learner finishes a quiz, Sythra adds XP to their running total. You already have two variables: - current_xp — XP before the quiz - earned — XP from this quiz Your job Add earned into current_xp, then print the new total. Examples (what your program should print) - current_xp=100, earned=40 → prints 140 - current_xp=0, earned=0 → prints 0 - current_xp=500, earned=1000 → prints 1500

Not started · 0%

Start →
Lab 02Easy

Level Calculator

Sythra shows level progress from total XP. You already have: - total_xp — the learner's XP Rules - Every 100 XP is a level, starting at Level 1 at 0 XP - Use // and % on total_xp - Print text like: Level 3 - 40 XP to next level - XP to next = 100 minus the remainder in the current 100 block - When remainder is 0 and total_xp > 0, XP to next is 100 Examples - total_xp=0 → Level 1 - 100 XP to next level - total_xp=99 → Level 1 - 1 XP to next level - total_xp=100 → Level 2 - 100 XP to next level - total_xp=240 → Level 3 - 60 XP to next level

Not started · 0%

Start →
Lab 03Medium

Blossom Wallet

Sythra's shop currency uses blossoms from lessons, quizzes, and streak bonuses. You already have: - lessons, quizzes, streak_bonus Rules - Each lesson is worth 5 blossoms - Each quiz is worth 10 blossoms - Add streak_bonus on top - Formula: lessons * 5 + quizzes * 10 + streak_bonus - Print the total Examples - lessons=2, quizzes=1, streak_bonus=0 → 20 - lessons=0, quizzes=0, streak_bonus=50 → 50 - lessons=3, quizzes=2, streak_bonus=5 → 40

Not started · 0%

Start →
Lab 04Hard

Welcome Card

The home screen greets returning learners with a compact status line. You already have: - name, level, xp, streak Rules - Print exactly: Welcome back, {name}! Level {level} | {xp} XP | {streak part} - streak 1 → 1-day streak - streak 0 → no streak yet - streak 2 or more → {streak}-day streak Examples - name="Asha", level=4, xp=380, streak=5 → Welcome back, Asha! Level 4 | 380 XP | 5-day streak - name="Neo", level=1, xp=0, streak=1 → Welcome back, Neo! Level 1 | 0 XP | 1-day streak - name="Ravi", level=2, xp=50, streak=0 → Welcome back, Ravi! Level 2 | 50 XP | no streak yet

Not started · 0%

Start →