Challenge 8

Open up your previous challenge program and save a copy of it.

Write a function that prompts the user to enter a student’s name and keeps prompting if they just pressed return.

Store both the valid name and valid exam mark in a class.

Alter your print procedure to be a class method and it should now print out the student’s name, mark and comment on a single line.

Report a Glow concern
Cookie policy  Privacy policy

Glow Blogs uses cookies to enhance your experience on our service. By using this service or closing this message you consent to our use of those cookies. Please read our Cookie Policy.