Skip to content

Commit

Permalink
Create joe_g.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joegeorge022 authored Dec 18, 2024
1 parent 6536d5a commit 0454139
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Day-16/joe_g.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
list1 = [10,2,3,4,2,23,4,45,45,56,23,1,23,4,32]
unique_set = sorted(set(list1))

print(unique_set)

grades=(27,27,29,30)
avg_grades = sum(grades) / len(grades)

print(avg_grades)

students1 = {"Joe_G", "Joe_M"}
students2 = {"Job"}
students = students1 & students2


student_grades = {
"Arbitran": (85, 90, 78),
"Barbie": (88, 76, 92),
"Callux": (80, 85, 88),
}

for student, grades in student_grades.items():
average = sum(grades) / len(grades)
print(f"{student}'s Average Grade: {average:.2f}")

0 comments on commit 0454139

Please sign in to comment.