diff --git a/simple_utils.py b/simple_utils.py new file mode 100644 index 0000000..3526e94 --- /dev/null +++ b/simple_utils.py @@ -0,0 +1,11 @@ +# simple_utils.py - A tiny utility library + +def reverse_string(text): + """Reverses the characters in a string.""" + return text[::-1] + +def count_words(sentence): + return len(sentence.split()) + +def celsius_to_fahrenheit(celsius): + return (celsius * 9/5) + 32