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.
2 parents 2e26007 + 2345fee commit 311f68aCopy full SHA for 311f68a
simple_utils.py
@@ -0,0 +1,11 @@
1
+# simple_utils.py - A tiny utility library
2
+
3
+def reverse_string(text):
4
+ """Reverses the characters in a string."""
5
+ return text[::-1]
6
7
+def count_words(sentence):
8
+ return len(sentence.split())
9
10
+def celsius_to_fahrenheit(celsius):
11
+ return (celsius * 9/5) + 32
0 commit comments