Skip to content

Commit

Permalink
5th commit
Browse files Browse the repository at this point in the history
  • Loading branch information
umairsafdar768 committed Aug 22, 2024
1 parent e1286fd commit 2ca4fbe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ def calculate_bmi(weight, height):
bmi = weight / (height ** 2)
return round(bmi, 2)

def generate_password(length=12):
# """
# Generate a random password of given length
# """
import random
import string
characters = string.ascii_letters + string.digits + string.punctuation
password = ''.join(random.choice(characters) for _ in range(length))
return password
# def generate_password(length=12):
# # """
# # Generate a random password of given length
# # """
# import random
# import string
# characters = string.ascii_letters + string.digits + string.punctuation
# password = ''.join(random.choice(characters) for _ in range(length))
# return password

# New functions added without test cases(2)

Expand Down

0 comments on commit 2ca4fbe

Please sign in to comment.