<reponame>saqib-i5/dsmp-pre-work
# --------------
# Code starts here
class_1 = ['<NAME>' , '<NAME>' , '<NAME>' , '<NAME>']
class_2 = ['<NAME>' , '<NAME>' , '<NAME>']

new_class = class_1+class_2
print(new_class)

new_class.append('<NAME>')
print(new_class)

new_class.remove('<NAME>')
print(new_class)

# Code ends here


# --------------
# Code starts here
courses = {'Math':65, 'English':70, 'History':80, 'French': 70, 'Science':60}

total = sum(courses.values())
print(total)

percentage = total/500*100
print(percentage)

# Code ends here


# --------------
# Code starts here
mathematics = {'<NAME>': 78, '<NAME>': 95, '<NAME>': 65, 
'<NAME>': 50, '<NAME>': 70, '<NAME>': 60, '<NAME>': 75}

topper = max(mathematics,key = mathematics.get)
print(topper)



# Code ends here  


# --------------
# Given string
topper = '<NAME>'


# Code starts here
print('-'*20)

first_name = topper.split()[0]
last_name = topper.split()[1]

full_name = f'{last_name} {first_name}'
print(full_name)

certificate_name = full_name.upper()
print(certificate_name)
# Code ends here



# --------------
# Code starts here
class_1 = ['<NAME>' , '<NAME>' , '<NAME>' , '<NAME>']
class_2 = ['<NAME>' , '<NAME>' , '<NAME>']

new_class = class_1+class_2
print(new_class)

new_class.append('<NAME>')
print(new_class)

new_class.remove('<NAME>')
print(new_class)

# Code ends here


# --------------
# Code starts here
courses = {'Math':65, 'English':70, 'History':80, 'French': 70, 'Science':60}

total = sum(courses.values())
print(total)

percentage = total/500*100
print(percentage)

# Code ends here


# --------------
# Code starts here
mathematics = {'<NAME>': 78, '<NAME>': 95, '<NAME>': 65, 
'<NAME>': 50, '<NAME>': 70, '<NAME>': 60, '<NAME>': 75}

topper = max(mathematics,key = mathematics.get)
print(topper)



# Code ends here  


# --------------
# Given string
topper = '<NAME>'


# Code starts here
print('-'*20)

first_name = topper.split()[0]
last_name = topper.split()[1]

full_name = f'{last_name} {first_name}'
print(full_name)

certificate_name = full_name.upper()
print(certificate_name)
# Code ends here
# -------------- # Code starts here # Code ends here # -------------- # Code starts here # Code ends here # -------------- # Code starts here # Code ends here # -------------- # Given string # Code starts here # Code ends here