from classroom import Student from classroom import Teacher me = Student('Sara', 'Anttila', 'electrical engineering') print(me.printNameSubject()) she = Teacher('Sara', 'Anttila', 'ETG1') print(she.printNameCourse())
# -*- coding: utf-8 -*- """ Created on Wed Feb 24 14:07:31 2021 @author: umera525 """ from classroom import Student me = Student('Benedikt', 'Daurer', 'physics') me.printNameSubject() from classroom import Teacher x = Teacher('Umar', 'Ramadhani', 'Python programming') x.printNameCourses()
from classroom import Student from classroom import Teacher me = Student('Dana', 'Salar', 'Automation and robotics') print('') print('Student :') print('') print('First name Last name Subject area') me.print_name_sub() print('') teacher = Teacher('Filipe','Maia','Python programming') print('Teacher :') print('') print('First name Last name course') teacher.print_name_course()
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 2 16:43:01 2021 @author: fernand """ from classroom import Student me = Student('Fernand', 'Denoel', 'physics') me.printNameSubject()
#!/usr/bin/env python from classroom import Student some_student = Student('Rosalind', 'Franklin', 'Structure of DNA') some_student.print_student()
from classroom import Student, Teacher if __name__ == '__main__': a = Student("Sebastian", "Cardoch", "physics") a.printNameSubject() a = Teacher("Filipe", "Maya", "Scientific Programming in Python") a.printNameCourse()
# -*- coding: utf-8 -*- """ Created on Wed Feb 17 14:10:26 2021 @author: Admin """ from classroom import Person, Student, Teacher S = Student('Philipp','Pilar','ML/Physics') S.info() T = Teacher('Filipe','Maia','ASPP') T.info()
from classroom import Student, Teacher august = Student("August", "Wollter", "physics") august.printName() august.printNameSubject() filipe = Teacher("Filipe", "Maia", "Python Programming") filipe.printNameCourse()