Video Streaming Plans

Published by Joshua Señoron in

Given a class for a BasicPlan, write the classes for StandardPlan and PremiumPlan which have class attributes of the following:

BasicPlanStandardPlanPremium Plan
can_stream
can_download
has_SD
has_HD
has_UHD
124num_of_devices
$8.99$12.99$15.99price

Examples

BasicPlan.has_SD ➞ True

PremiumPlan.has_SD ➞ True

BasicPlan.has_UHD ➞ False

BasicPlan.price ➞ "$8.99"

PremiumPlan.num_of_devices ➞ 4

Notes

Try using Inheritance to complete the challenge! If you're unsure what that means, try checking out the Python class tutorials in the Resources tab.

Watch a quick demo on how Edabit works.