Type hints for keyword arguments
suggest changedef hello_world(greeting: str = 'Hello'):
print(greeting + ' world!')
Note the spaces around the equal sign as opposed to how keyword arguments are usually styled.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents