Files
2025-05-20 11:57:43 -04:00

30 lines
339 B
Python

#!/usr/bin/env python
def say_hello(): # <1>
print("Hello, world")
print()
# <2>
say_hello() # <3>
def get_hello():
return "Hello, world" # <4>
h = get_hello() # <5>
print(h)
print()
def sqrt(num): # <6>
return num ** .5
m = sqrt(1234) # <7>
n = sqrt(2)
print("m is {:.3f} n is {:.3f}".format(m, n))