oopschool
Project description
This Program is for my class about OOP
Download
Open CMD / Terminal
pip install OOP_school1235
How to use
from oopschool import *
allstudent = []
teacher1 = Teacher('Ada')
teacher2 = Teacher('Bill Gates')
print(teacher1.students)
# Day 1
print('--- Day 1 ---')
st1 = Student('PonAek', 'JanOCha')
allstudent.append(st1) # Register Finished then Save to List! Immediately
print(st1.fullname)
teacher2.AddStudent(st1)
# Day 2
print('--- Day 2 ---')
st2 = Student('steve', 'Jobs')
allstudent.append(st2)
print(st2.fullname)
teacher2.AddStudent(st2)
# Day 3
print('--- Day 3 ---')
for i in range(3):
st1.Coding()
st2.Coding()
st1.ShowExp()
st2.ShowExp()
# Day 4
print('--- Day 4 ---')
stp1 = SpecialStudent('Def', 'Editor', 'Pychoom')
allstudent.append(stp1)
print(stp1.fullname)
print('Teacher, Can I take free some 20 exp')
stp1.exp = 20 # Can edit values in Class
stp1.Coding()
stp1.ShowExp()
teacher1.AddStudent(stp1)
# Day 5
print('--- Day 5 ---')
print('Student How can you back to home?')
print(allstudent)
for st in allstudent:
print(f'Me, {st.name} Back to home by {st.vehicle}.')
if isinstance(st, SpecialStudent):
st.vehicle.SelfDriving(st)
# Day 6
print('--- Day 6 ---')
teacher1.CheckStudent()
teacher2.CheckStudent()
print('All Scores of Two Studet', st1+st2)
Develop By Ryu
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oopschool1235-0.0.6.tar.gz
(3.5 kB
view details)
File details
Details for the file oopschool1235-0.0.6.tar.gz
.
File metadata
- Download URL: oopschool1235-0.0.6.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e34a9ec4ce3fd43e9db35416ecdc873c8ab38135834e080cbb94f425c34e9b6e
|
|
MD5 |
83eb7dc43694df1ce37bfc9c55c7d6d1
|
|
BLAKE2b-256 |
299074edc7b6a6bacb6df185be492af1ae14641bf7ba0c96cb59f150eaf6c4f5
|