Skip to content

Commit

Permalink
Create hello_world.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tamarasaqer authored Jan 12, 2025
1 parent 6d528e1 commit 76dfac2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions solutions/hello_world.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"""
A simple module to print 'Hello, World!'.
Author: Tamara Saqer
Date: 2025-01-12
"""


def print_hello_world() -> str:
"""
Return the string 'Hello, World!'.
Returns:
str: The string 'Hello, World!'.
Examples:
>>> print_hello_world()
'Hello, World!'
"""
return "Hello, World!"


if __name__ == "__main__":
import doctest

# Run doctests to validate the function
doctest.testmod()

0 comments on commit 76dfac2

Please sign in to comment.