pyPython Practice LabFrom first print to final round
PYTHON PROBLEM 123 · Intermediate

Calculate tax with an optional rate: Standard tax

Calculate a bill using the standard 18 percent rate.

Define a single responsibility → pass data in → return data outdefault argumentfunction
PROBLEM OVERVIEW

What this Python exercise asks you to practise

This scenario tests calculate tax with an optional rate. It belongs to the Functions and Functional Tools roadmap and uses the define a single responsibility → pass data in → return data out pattern.

Write reusable functions and meet lambda, map, filter, reduce, closures, generators, and decorators.

COMPLETE WORKSPACE

Learn the plan, trace the logic and run the solution

Complete access unlocks the full statement, input and output examples, visual execution plan, hints, browser compiler, solution and line-by-line interpretation.

Unlock all 360 problems · ₹599One full year · one payment · no automatic renewal
INTERVIEW CONTEXT

Skills and reported company tags

Interview platforms and learner reports associate this problem family with the companies below. Tags are preparation signals, not a guarantee that an identical question will appear.

TCSInfosysAccenture