We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59c6ebe commit 0d9fe83Copy full SHA for 0d9fe83
flow/defining_functions/keyword_args.py
@@ -1,5 +1,7 @@
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.
+# 1 mile = 8 furlong = 1609.344 meters
+print_distance(1609.344)
6
+print_distance(8, 'furlongs') # used in horse racing.
7
+print_distance(1, unit='mile')
0 commit comments