Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,152,182 members, 7,815,138 topics. Date: Thursday, 02 May 2024 at 08:04 AM |
Nairaland Forum / Science/Technology / Programming / Code To Build A School Portal Using Python. (558 Views)
Download Online Job Portal Using PHP With Source Code / Meet Emmanuella Mayaki: Hired By A School In The UK As Coding Instructor / API Using Python (2) (3) (4)
Code To Build A School Portal Using Python. by Hagiazomakai: 11:19am On Apr 28, 2023 |
I was given a task by my superior to write a code for a school portal to contain list of schools,classes,students. Still working on it though. class SchoolMangement: def __init__(self): self.schools = [] self.classes = [] self.students = [] def school(self): entry = {1: 'name of school ', 2: 'Location'} while True: for key, value in entry.items(): print(key, value) user_input = int(input(":> ") def menu(self): main_manu = {1: 'School', 2: 'Class', 3: 'Student', 0: 'Exit'} while True: for key, value in main_manu.items(): print(key, value) user_input = int(input(":> ") if user_input == 0: break if user_input == 1: self.school() |
Re: Code To Build A School Portal Using Python. by Hagiazomakai: 11:21am On Apr 28, 2023 |
I have two approaches I am using first is using CLASS(which is shorter) and the other is using the conventional method. Kindly check it out |
Re: Code To Build A School Portal Using Python. by Nobody: 3:06pm On Apr 28, 2023 |
Hagiazomakai: Did your imaginary superiors tell you to post your solution on NL first or show workings on Nairaland? More like a beginner practice question gotten online |
Re: Code To Build A School Portal Using Python. by RepoMan007: 3:58pm On Apr 28, 2023 |
OP school management app on the average are much more complex than this practice you posted. OOP are powerful and generally simplify complex MIS but not to this extent. |
Re: Code To Build A School Portal Using Python. by Deicide: 8:27pm On Apr 29, 2023 |
Now you can add it to your CV 🙃 |
Re: Code To Build A School Portal Using Python. by Hagiazomakai: 12:19pm On May 23, 2023 |
Yes,I have used class and it made it short and scalable RepoMan007: |
(1) (Reply)
Life Is Goog / Grammarly Plans / Original Programming Textbooks From Aptech Com For Sale (used But Look Like New)
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 10 |