Skip to content

Lab exercise solutions - #5

Open
SaifulJnU wants to merge 5 commits into
Nure:mainfrom
SaifulJnU:lab-exercise-solutions
Open

SaifulJnU wants to merge 5 commits into
Nure:mainfrom
SaifulJnU:lab-exercise-solutions

Conversation

@SaifulJnU

Copy link
Copy Markdown

Summary:
This PR provides full solutions to Python Exercises 1–5, along with thorough documentation that walks
through the reasoning and execution flow behind each problem.

What's Included:

  • Solutions for all five exercises, fully implemented and working.
  • Explanations outlining the goal and approach of each exercise.

Concepts Demonstrated:

  • Conditional statements
  • Loops and arithmetic operations
  • Functions and return values
  • String manipulation and lists
  • Boolean logic and compound conditions

Capture user profile, cast inputs, assign clearance tier via if-elif-else,
and print an f-string summary. Includes solution logic markdown.
Loop-count active nodes from a nested dict, compute utilization percentage,
and print a formatted audit report. Includes solution logic markdown.
Compute 720-hour monthly cost in a function and return APPROVED/REJECTED
against the budget cap. Includes solution logic markdown.
Loop over raw inputs, strip+lowercase each, and append to a sanitized list.
Includes solution logic markdown.
Combine telemetry flags into one compound boolean (down OR overloaded-prod)
and branch the verdict. Includes solution logic markdown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant