Results for “comparison”

4 results

  1. Article Python Fundamentals

    Python If/Else for Beginners

    …Here's what you'll use most often when writing conditions: Comparisons: == , != , < , > , <= , >= Logical operators: and , or , not Membership: in , not in Truthiness: values like 0 , "" , [] , None…

  2. Article Mini projects

    Base 6 Number System in Python

    …which means "one group of six, plus zero ones." Here's a comparison table to make this click. Let's count from 0 to 12 in both systems: Decimal (Base 10) Senary (Base 6) What's happening 0 0 Same in…

  3. Article Python Fundamentals

    Python Functions for Beginners

    …the end. Hint: use .strip().lower() on both answers before comparing them, so "Mars", "mars " and "MARS" all count as correct. This project pulls together almost everything in this article, so take…

  4. Article Python Fundamentals

    Nested Loops in Python

    …2D/3D data - maps, satellite images, coordinate grids Comparing everything with everything - checking distances between all objects Searching nested structures - like checking systems in each vehicle…