From f8bbab0cc2d5134a71afa35e428d7494ae9e4758 Mon Sep 17 00:00:00 2001 From: umairsafdar768 Date: Thu, 22 Aug 2024 16:03:31 +0500 Subject: [PATCH 1/2] 11th commit --- main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index dd81f20..523f290 100644 --- a/main.py +++ b/main.py @@ -98,9 +98,9 @@ def fibonacci(n): # 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 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 From 5eaeb570def8b0d3bbd5756190a6c45d8b627211 Mon Sep 17 00:00:00 2001 From: umairsafdar768 Date: Thu, 22 Aug 2024 16:08:48 +0500 Subject: [PATCH 2/2] 12th commit --- main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 523f290..a6bb8b7 100644 --- a/main.py +++ b/main.py @@ -91,12 +91,12 @@ def fibonacci(n): # """ # 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 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): """