PYTHON CORE · LESSON 38
The default argument
Convenient function · about 12 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Dial the function and call it without argument.
def wave(name="друг"):
print("Привет, " + name)
wave()Open the editor for class workSolve it yourself
Create greet with the name default «друг» argument. The function outputs «Привет, » and name. Call greet without argument.
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework