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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!