1st: So i was told to make a code that can store the names of students who have asked to go on a trip up to the maximum number allowed ( 45 students max).
2nd: i must also input and store whether each student has paid.
3rd: enable printouts to be produced to show which students have not paid.
so as of now, im still at the 1st stage. here's my code, i decided to use the dictionary command:
d = {}
d [input("have the student paid?: ")]=input("enter 1st name: ")
d [input("have the student paid?: ")]= input("enter 2nd name: ")
d [input("have the student paid?: ")]= input("enter 3rd name: ")
d [input("have the student paid?: ")]= input("enter 4th name: ")
d [input("have the student paid?: ")]= input("enter 5th name: ")
It worked perfectly fine.
But is there any other way on how to input the names and assign the name correctly to which students have/ have not paid.
Is there any method of doing it instead of writing it one by one, because i need to write 45 of those.
This not my complete answer for the 1st question
I also need extra help for my 2nd and 3rd question please.