i'm struggling to code how to retrieve students ID
I am using classes to program a teacher accessing a database to get student info and I am not sure how to program how the teacher retrieves the student info
There is a way to fix this. If you are using python, click the Database button on the left sidebar and it will show you how to use it. That will prevent others from viewing the passwords. You can have each student make an account and thereafter be able to log in. Instead of creating a new painful instance each time, I would highly suggest you store the database in a CSV file or the database.