Skip to content

Commit 0c21700

Browse files
committed
Fixed code error from reddit
1 parent a497c6b commit 0c21700

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

python-typing/hello_world.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# hello_world.py
22
def hello_world(name: str = 'Joe') -> str:
3-
print(f'Hello {name}')
3+
return f'Hello {name}'
44

55

66
hello_world(name='Mark')
77

88
hello_world(name=2)
9-

0 commit comments

Comments
 (0)