Results for “assignment”

5 results

  1. Challenge

    Assignment in a condition

    An oxygen check uses = instead of == and has a line that isn't indented, so Python refuses to run it. Predict what happens, fix both errors one after the other, then write an if/else check yourself.

    Fix the code Easy 3 stages if else == SyntaxError
  2. Article Python Fundamentals

    Python Functions for Beginners

    …where it is not associated with a value Because there's an assignment to fuel inside the function, Python treats fuel as a local variable for that whole function. Then it finds you're trying to…