Celestial bodies

Report a typo

Suppose you have the following function:

def func(star="Sun", *moons, planet):
    pass

The order of its parameters is wrong. Sort the parameters in the correct order: place the leftmost parameter at the top and the rightmost parameter at the end.

Note that star and planet will be positional arguments during the function call.

Put the items in the correct order
planet
*moons
star="Sun"
___

Create a free account to access the full topic