From 7b7f55c363622f946969efb9f8f8a9571eb81941 Mon Sep 17 00:00:00 2001 From: umairsafdar768 Date: Thu, 22 Aug 2024 15:38:51 +0500 Subject: [PATCH 1/2] 9th commit --- main.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/main.py b/main.py index 81c3124..4d9fa27 100644 --- a/main.py +++ b/main.py @@ -91,16 +91,16 @@ def calculate_bmi(weight, height): # """ # 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): - """ - 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 ac051f997ca9b89594a105875e77c77745f00f3d Mon Sep 17 00:00:00 2001 From: umairsafdar768 Date: Thu, 22 Aug 2024 15:47:35 +0500 Subject: [PATCH 2/2] 10th commit --- main.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/main.py b/main.py index 4d9fa27..dd81f20 100644 --- a/main.py +++ b/main.py @@ -62,16 +62,16 @@ def fibonacci(n): # # New functions added without test cases -def calculate_bmi(weight, height): - """ - Calculate BMI (Body Mass Index) - weight: in kilograms - height: in meters - """ - if height <= 0: - raise ValueError("Height must be greater than zero") - bmi = weight / (height ** 2) - return round(bmi, 2) +# def calculate_bmi(weight, height): +# """ +# Calculate BMI (Body Mass Index) +# weight: in kilograms +# height: in meters +# """ +# if height <= 0: +# raise ValueError("Height must be greater than zero") +# bmi = weight / (height ** 2) +# return round(bmi, 2) # def generate_password(length=12): # # """