Skip to content

AlieeLinux/python-arguments-activity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laboratory Activity: Working with Python Function Arguments

and as always. do not clone and sumbit this instead.

Submission of my potentially last activity on BSDSA course

usage

python Main.py

create your own

# Example from part4.py

from libs import Part4
Part4.Order("black coffee", iced=True)

Note

part3 is not wrong order. the instruction says

Part 3 — Default Arguments
    1. Modify the function to include a default value:
def describe_pet(pet_name, animal_type="dog"):
    print(f"I have a {animal_type} and its name is {pet_name}.")
Tasks:
    • Call describe_pet("Brownie")
    • Call describe_pet("Nugget", "chicken")


def describe_pet(animal_type, pet_name="dog"):
    print(f"I have a {animal_type} and its name is {pet_name}.")

describe_pet("Brownie")
describe_pet("Nugget", "chicken")%                          

and I Apologize to everyone. I think can't handle this course anymore. Its not because its too hard. Its just straight up unfair to us students because of that one single professor(not gonna say who is that)

Kyouko Cry

send your frustrations here

Cyrus Troy @AlieeLinux

About

Submission of my activity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages