Space Python Loading Python…

Positional and Keyword Arguments

 
0:00 / 0:00

Challenge

Practise what this example shows: fix or write code until the tests pass.

Swapped arguments

Fix the codeEasy 3 stages

A call to schedule_launch() passes the pad where the rocket belongs, and the board says a launch pad is flying. Predict the line, find which parameter got which value, fix it with keyword arguments, then make calls that can't be swapped.

Start the challenge

Discussion

Stuck on this example or want to go further? Ask here, or see what others asked.

Log in to ask and reply.

script.py
PythonLn 1, Col 1Spaces: 4
Loading the Python environment…

Separate arguments with commas. They're passed on every Run as sys.argv[1:].