0% found this document useful (0 votes)
13 views4 pages

Aditya Python

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views4 pages

Aditya Python

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

DEPARTMENT OF

COMPUTER SCIENCE & ENGINEERING

Graded Assessment - 4
Student Name: Aditya Kumar UID: 23BCS11282
Branch: BE-CSE Section/Group: 618-B
Semester: 3rd Date of Performance:24/10/24
Subject Name: Python Programing Subject Code:23CSP-201

1. Aim: Fitness Centre Management


Fit Track manages member activities across multiple locations.
2. Requirements (Software):
Problem Statement:
 Member attendance
 Class schedules
Tasks:
1. Create sets of active members
2. Implement linear search for member lookup

3. Procedure:
active_members = [
"Alice", "Bob", "Charlie", "David", "Eve",
"Frank", "Grace", "Helen", "Ivy", "Jack"
]

def linear_search(members, target_name):

for index, member in enumerate(members):


if member == target_name:
return f"Member '{target_name}' found at position {index}."
return f"Member '{target_name}' not found."

if __name__ == "__main__":

target = input("Enter the member name to search: ").strip()

result = linear_search(active_members, target)

print(result)

3. Output:
Problem of functions in code chef
4. Learning Outcome:

- Learnt about how to use different Data sets


- Working and implementation dictionaries, lists etc.

You might also like