Menú

Linux Distributions and their DE

This project describes with simple object-oriented programming methods the contents of the Linux class, the different distributions, their default desktop environment and their developer.

 

class Linux:

    def __init__(self, name, desktop, developer):

        self.name = name

        self.desktop = desktop

        self.developer = developer

    def display(self):

        print(f"{self.name} is a Linux Distro that uses {self.desktop} as its DE.")


    def info(self):

        print(f"{self.desktop} is developed by {self.developer}, optimised for {self.name}.\n You can change the default DE to any other DE of your choice.")

 

I hope to come back here one day to make more changes to this, make it more sophisticated and better. Any and all feedback are appreciated, it would help me a lot with better understanding of this course and OOP in-general.

Linux Distributions and their DE - image 1 - student project

Written in VS Code, Python version 3.12.3