Results for “global variables”

1 result

  1. Challenge

    Shadowed fuel

    …assigns to fuel_kg inside the function, creating a local variable and leaving the global fuel unchanged. Predict the last line, compare both values, fix it by returning the total, then write a…

    Fix the code Medium 3 stages functions scope local variables global variables