Open main menu

CDOT Wiki β

Changes

OPS435 Online Lab6

33 bytes added, 22:39, 9 November 2020
PART 1 - Creating a Class
class Student:
# Define the name and student ID number (which is a string) when a student object is created, ex. student1 = Student('john', '025969102')
def __init__(self, name, number):
self.name = name
1,760
edits