Answers for "create a student class and initialize it with name and roll number in python"

0

create a student class and initialize it with name and roll number in python

class Student():
  def __init__(self,name,roll):
    self.name = name
    self.roll= roll
  def display(self):
    print self.name
    print self.roll
  def setAge(self,age):
    self.age=age
  def setMarks(self,marks):
    self.marks = marks
Posted by: Guest on July-01-2020

Code answers related to "create a student class and initialize it with name and roll number in python"

Python Answers by Framework

Browse Popular Code Answers by Language