<jupyter_start><jupyter_text>CLASS PROJECT 1<jupyter_code>import random

class Employee():
    Employees = [ "<NAME>", "<NAME>", "<NAME>", 
    "<NAME>", "<NAME>", "<NAME>", "<NAME>", "<NAME>", 
    "<NAME>", "<NAME>" , "<NAME>", 
    "<NAME>", "<NAME>", "<NAME>", "<NAME>"]
    
    Tasks = [ "Loading", "Transporting", 
    "Reviewing Orders", "Customer Service", "Delivering Items"]
    
    def __init__(self, name):
        self.name = name
        
        
    # check if person in employees list
    def check_employee(self):
        if self.name in self.Employees:
            self.access = True
            print("Welcome", self.name)
            
    #take attendance
    def take_attendance(self):
        if self.name in self.Employees:
            self.present = "Present"
            print(self.name, "is", self.present)
            
    #assign tasks to people
    def assign_task(self):
        if self.name in self.Employees:
            self.task = random.choice(self.Tasks)
            print(self.name, 'Your job is', self.task)
    
    # to refuse access
    def refuse_access(self):
        if self.name not in self.Employees:
            print(self.name, "Sorry, you're not one of us")

#name = input("Please enter your name: ")
#person = Employee(name))

person = Employee(input("Please enter your name: "))

person.check_employee()
person.take_attendance()
person.assign_task()
person.refuse_access()<jupyter_output>Please enter your name: <NAME>
Welcome Adams Ali
Adams Ali is Present
Adams Ali Your job is Loading<jupyter_text>CLASS PROJECT 2<jupyter_code>class delivery():
    
    def __init__(self, package_id, location, weight):
        self.package_id = package_id
        self.location = location
        self.weight = int(weight)
    
    #for packages going to pau
    def PAU(self):
        if self.location.upper() == "PAU":
            if self.weight >= 10:
                self.price = 2000
                print(self.package_id, "has a price of", str(self.price))
            else:
                self.price = 1500
                print(self.package_id, "has a price of", str(self.price))
    
    #for packages going to Epe
    def Epe(self):
        if self.location.upper() == "EPE":
            if self.weight >= 10:
                self.price = 5000
                print(self.package_id, "has a price of", str(self.price))
            else:
                self.price = 4000
                print(self.package_id, "has a price of", str(self.price))

#define an object and call the class methods
p_id = input("Please enter the id: ")
location = input("Please enter the delivery location: ")
weight = input("Please enter the package_weight: ")

Dumebi = delivery(p_id, location, weight)
Dumebi.PAU()
Dumebi.Epe()<jupyter_output>Please enter the id: 001
Please enter the delivery location: pau
Please enter the package_weight: 30
001 has a price of 2000
{'fraction_non_alphanumeric': 0.12284334023464458, 'fraction_numerical': 0.011732229123533472, 'mean_word_length': 2.4429928741092635, 'pattern_counts': {'":': 2, '<': 23, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '388396', 'license': 'MIT', 'n_tokens_mistral': 920, 'n_tokens_neox': 859, 'n_words': 257, 'path': 'week_9/class_projects.ipynb', 'repo_name': 'Dumebi35/DumebiCSC102', 'size': '2983'}