LivingBots

Mission 5: Python B — India's Wisdom Trail

India bot

Welcome to the Wisdom Trail!

I'm India, and like the elephant I embody, I bring wisdom, strength, and perfect memory to every challenge. I charge headfirst into obstacles, clearing the path for my team. Now let me share that wisdom with you through 10 intermediate Python tasks. Remember: an elephant never forgets, and neither will you after these lessons!

Your Progress

0 / 10 completed
Use VS Code (Mission 3) Use Trinket (Python 3)

Mission 5 Terms

Slice
Extract a portion of a list/string using [start:stop:step].
Negative Index
Count from the end: -1 is last item, -2 is second-to-last.
max() / min()
Built-in functions returning the largest/smallest value.
Tuple
Immutable sequence using parentheses: (1, 2, 3).
Unpacking
Assign tuple elements to variables: a, b = (1, 2).
sorted()
Returns a new sorted list. Use key= for custom sorting.
key function
A function that returns the value to sort by.
zip()
Pairs elements from multiple iterables together.
dict.get()
Access a dictionary value by key, with optional default.
statistics.mean()
Calculate the average of a list of numbers.
random.seed()
Set a seed for reproducible random numbers.
math.ceil() / floor()
Round up to ceiling or down to floor.