Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Jobthomas10 authored Dec 15, 2024
1 parent 2725596 commit ebee00b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Day-16/j.ob.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
customers=["cust1","cust2","cust3","cust1","cust3","cust2"]
unique_customers=sorted(set(customers))
print("unique and sorted customers:",unique_customers)
# using tuples for immutable data
grades = (94,82,82,34,93)
average_grade=sum(grades)/len(grades)
print(f"grades:{grades}")
print(f"average grade:{average_grade}")
# set opertions

python_students={"alice","boby","diana","charlie"}
java_students={"charlies","eve","diana,frank"}
commom_student=python_students or java_students
print(commom_student)

0 comments on commit ebee00b

Please sign in to comment.