Question: use python to create a class named Student whose method __init__() sets two properties, name and sno. Create two methods named describe and learn, where
use python to create a class named Student whose method __init__() sets two properties, name and sno. Create two methods named describe and learn, where the former prints the above two items of information and the latter prints a message indicating that this student t is learning now. Create an instance named student according to this class, her name is Kate and her sno is 2020001, print its two properties respectively, and then call the above two methods.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
