How to Create objects based on one of the user inputs required for the class and access the attributes using the object?
I have this python code: class Student: #create a class def __init__(self,name,roll,percentage): self.name=name self.roll=roll self.percentage=percentage Now I want to send attributes of the class Student from a user input using a function like this: def Input(): name=input("please enter your name\n") roll=input("please enter your roll\n") percentage=input("please enter your percentage\n") Now the problem is I want to create an object to the class Student based on name variable and send attributes to the class something like this: name=Student(name,roll,percentage) And when I call it with "name",It should show the result like this: #for example: name="Rahul" roll="405" percentage="80" and when I type Rahul.percentage,it should display 80. Please Help me.