Advanced · 4 labs
Inspect types, parse signup fields, read quiz scores, and validate forms — write normal scripts and print your answers.
Total labs
4
Completed
0
Remaining
4
Progress
0%
In this track
0 / 4 done
Sythra logs the type of each signup field for debugging. You already have: - value — a signup field Your job Print "int", "float", "str", or "bool" using type(). Examples - value=3 → int - value=3.0 → float - value="3" → str - value=True → bool
Not started · 0%
The signup form sends age as text. Sythra stores it as an integer. You already have: - age_text — age as a string Rules - Strip spaces first - Convert to int - Print the integer Examples - age_text="17" → 17 - age_text=" 17 " → 17 - age_text="0" → 0
Not started · 0%
Quiz results arrive as text fields. Sythra shows a percentage. You already have: - correct_text, total_text — strings Rules - Cast both to int - Compute correct / total * 100 - Round to 1 decimal with round(..., 1) - Print the percent Examples - "8", "10" → 80.0 - "0", "10" → 0.0 - "1", "3" → 33.3
Not started · 0%
Sythra blocks invalid signups before creating an account. You already have: - username, age_text Print exactly one of: valid, invalid username, invalid age, too young Check in this order: 1. username blank after strip → invalid username 2. age_text stripped is not all digits → invalid age 3. parsed age under 13 → too young 4. otherwise → valid Examples - "asha", "15" → valid - " ", "15" → invalid username - "neo", "abc" → invalid age - "maya", "12" → too young
Not started · 0%