mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
21 lines
458 B
Python
21 lines
458 B
Python
"""
|
|
Simple Hello World function in Python
|
|
"""
|
|
|
|
def hello_world(name: str = "World") -> str:
|
|
"""
|
|
Simple Hello World function
|
|
|
|
Args:
|
|
name (str): Optional name parameter, defaults to 'World'
|
|
|
|
Returns:
|
|
str: Greeting message
|
|
"""
|
|
return f"Hello, {name}!"
|
|
|
|
|
|
# Example usage
|
|
if __name__ == "__main__":
|
|
print(hello_world()) # Output: Hello, World!
|
|
print(hello_world("Claude")) # Output: Hello, Claude! |