Skip to content

Commit 59c6ebe

Browse files
committed
Add defining functions.
1 parent 6a83d19 commit 59c6ebe

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def print_distance(value, unit='meters'):
2+
print("Distance:", value, unit)
3+
4+
print_distance(299792458) # is equal to light travels in 1 second.
5+
print_distance(220, 'yards') # is equal to 1 Furlong, used in horse racing.

0 commit comments

Comments
 (0)