diff --git a/additional_func.py b/additional_func.py deleted file mode 100644 index 63dbacd..0000000 --- a/additional_func.py +++ /dev/null @@ -1,24 +0,0 @@ -def reverse_string(s): - """ - Reverse a given string - """ - return s[::-1] - -def is_palindrome(s): - # Remove non-alphanumeric characters and convert to lowercase - cleaned = ''.join(char.lower() for char in s if char.isalnum()) - # Compare the cleaned string with its reverse - return cleaned == cleaned[::-1] - -def celsius_to_fahrenheit(celsius): - """ - Convert Celsius to Fahrenheit - """ - return (celsius * 9/5) + 32 -## -def count_vowels(string): - """ - Count the number of vowels in a string - """ - vowels = 'aeiouAEIOU' - return sum(1 for char in string if char in vowels) \ No newline at end of file diff --git a/main.py b/main.py index a45e964..dd81f20 100644 --- a/main.py +++ b/main.py @@ -85,22 +85,22 @@ def fibonacci(n): # New functions added without test cases(2) -def celsius_to_fahrenheit(celsius): - """ - Convert Celsius to Fahrenheit - """ - return (celsius * 9/5) + 32 - -def count_vowels(string): - """ - Count the number of vowels in a string - """ - vowels = 'aeiouAEIOU' - return sum(1 for char in string if char in vowels) - -def is_palindrome(s): - """ - Check if a string is a palindrome - """ - s = ''.join(char.lower() for char in s if char.isalnum()) - return s == s[::-1] \ No newline at end of file +# def celsius_to_fahrenheit(celsius): +# """ +# Convert Celsius to Fahrenheit +# """ +# return (celsius * 9/5) + 32 + +# def count_vowels(string): +# """ +# Count the number of vowels in a string +# """ +# vowels = 'aeiouAEIOU' +# return sum(1 for char in string if char in vowels) + +# def is_palindrome(s): +# """ +# Check if a string is a palindrome +# """ +# s = ''.join(char.lower() for char in s if char.isalnum()) +# return s == s[::-1] \ No newline at end of file