From e1e8b219047c1dcd6241e15d4641db3722a23560 Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Sat, 27 Feb 2021 12:42:50 -0500 Subject: [PATCH] solve 8.6.1 --- 8/8.6/8.6.1/main.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 8/8.6/8.6.1/main.py diff --git a/8/8.6/8.6.1/main.py b/8/8.6/8.6.1/main.py new file mode 100644 index 0000000..7699107 --- /dev/null +++ b/8/8.6/8.6.1/main.py @@ -0,0 +1,24 @@ +class PhonePlan: + # FIXME add constructor + + def __init__(self, _num_mins=0, _num_messages=0): + self.num_mins = _num_mins + self.num_messages = _num_messages + + def print_plan(self): + print('Mins:', self.num_mins, end=' ') + print('Messages:', self.num_messages) + + +my_plan = PhonePlan(int(input()), int(input())) +dads_plan = PhonePlan() +moms_plan = PhonePlan(int(input())) + +print('My plan...', end=' ') +my_plan.print_plan() + +print('Dad\'s plan...', end=' ') +dads_plan.print_plan() + +print('Mom\'s plan...', end= ' ') +moms_plan.print_plan()