B 2.3.4 Worksheet - Python
Instructions: The following program calculates the area and perimeter of a rectangle. Refactor the code by creating functions and applying modularization principles.
Only teachers can take out free trials or subscriptions to our subject sites at thinkib.net
In line with the IB Learner Profile, "Act with integrity and honesty".
If you are a student and wish to access these resources, ask your school to subscribe.
Alternatively, sign up to our sites at studyib.net which are specifically designed for self study and revision.
The InThinking Guarantee: Our sites are written by expert practitioners and not by AI
See our AI policyDisclaimer: InThinking subject sites are neither endorsed by nor connected with the International Baccalaureate Organisation.
Instructions: The following program calculates the area and perimeter of a rectangle. Refactor the code by creating functions and applying modularization principles.
For information about pricing, click here