Example
Mathematical Set Operations
Union, intersection and difference of sets. Mathematical operations from set theory.
Showing 1–10 of 40
Example
Union, intersection and difference of sets. Mathematical operations from set theory.
Quiz
…sets, add(), update(), remove(), union, intersection, difference and subsets. Instant answers.
Challenge
Check that a crew member holds every permission an airlock action needs with needed
Challenge
Compare yesterday's and today's cargo IDs with set difference to print what was added and what was removed, then count what stayed with an intersection and print none for an empty change.
Example
When to use tuples instead of lists? Comparison of properties and applications.
Article Mini projects
…Python to build a program that calculates your weight on different planets. This skill might come in handy during your future space missions! Before we blast off, let's understand the basics. Your…
Challenge
…off, round() rounds, and round(2.5) gives 2. Predict the difference, investigate Python's rounding rule, then round a fuel reading two ways.
Example
Combining regular parameters, *args and **kwargs in one function.
Example
Difference between positional and keyword arguments. Flexible function calling.
Article Python Fundamentals
…two books consistently deliver results - though for very different reasons. Let's see which learning style matches yours.