Skip to content

Instantly share code, notes, and snippets.

@charlieInDen
Created October 25, 2020 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlieInDen/f0e232e065f1de5184d0e9b15398ad28 to your computer and use it in GitHub Desktop.
Save charlieInDen/f0e232e065f1de5184d0e9b15398ad28 to your computer and use it in GitHub Desktop.
names = input("Enter names separated by commas: ").title().split(",")
assignments = input("Enter assignment counts separated by commas: ").split(",")
grades = input("Enter grades separated by commas: ").split(",")
message = "Hi {},\n\nThis is a reminder that you have {} assignments left to \
submit before you can graduate. You're current grade is {} and can increase \
to {} if you submit all assignments before the due date.\n\n"
for name, assignment, grade in zip(names, assignments, grades):
print(message.format(name, assignment, grade, int(grade) + int(assignment)*2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment