Welcome to Gru's Lair, Recruits!
Gru has a problem — he can’t keep track of all the Minions and their important jobs. That’s where YOU come in! Your mission is to use your Python skills to create a Minion Roster that shows Gru the names of his favorite Minions and their totally bananas job titles. Let’s help Gru keep his evil plans in order! By the end of this mission, you’ll have a perfectly organized table that will make Gru very happy (and hopefully he’ll reward you with a banana or two 🍌)
Using Python's f-strings, you’ll create a table that shows:
Minion Names (we’re talking Kevin, Bob, Stuart — you know, the gang!)
Their Job Titles (because "Chief Banana Supplier" is a VERY serious job).
Set Up the Minions:
Create six variables that store the names of the Minions.
Create six variables that store their awesome job titles.
Use Your Python Tools:
You’ll use f-strings to format and line up all the Minion names and their jobs in a table.
Set a fixed width for both the names and the job titles so everything lines up neatly — Gru likes things nice and tidy!
Display the Roster:
First, create a header for your table, like "Minion Name" and "Job Title."
Then, make sure each Minion name is lined up in the first column, and each job title is perfectly aligned in the second column.
Here is sample output for the task above.
Remember... this is just an example!! Yours can look different
Do NOT use spaces. This is all fixed width and FORMATTED STRINGS.
You have to make sure that your FIXED WIDTH is wider than the phrases or names you use. (That's just guess and check for now)
DON'T OVERTHINK THIS!! Experiment with Left, Right, Center, and padded fills. Also, you can use cool things like Multiplying Repeated Strings (* with a string)
Gru is very particular about how things look. He wants the Minion name and job title columns to have specific widths.
You'll ask the user to enter the desired widths for each column and use those widths to align the Minion roster neatly.
THIS ISN'T AS EASY AS YOU THINK! BUT, IT CAN BE DONE WITH WHAT WE'VE LEARNED SO FAR! YOU NEED NO EXTRA PYTHON AWESOMENESS
You have to make sure that your FIXED WIDTH is wider than the phrases or names you use. (That's just guess and check for now)
You are encouraged to use any code or concepts that have been taught or demonstrated in class as part of your assignment. However, if you look up or reference additional code, libraries, or concepts from external sources (e.g., websites, books, online tutorials), you must cite the source.
For code/concept not yet visited in class:
Clearly indicate the exact code or concept used.
Indicate how/why you needed this. What caused you to look it up?
Provide a brief description of where you found it (e.g., URL, book title, or video link).
Explain how it was integrated into your solution and how it added to your program
Additional Guidelines:
Any external concepts or code should be at a reasonable level of difficulty compared to what we've covered in class.
If a concept or code is well beyond the scope of what we’ve learned, you must either remove it or rewrite it to align with the level of coding we do in class.
Failure to properly cite external sources or follow the difficulty guidelines may result in a deduction of points or further review. Be honest and transparent in your use of outside resources!