Question: Exercise 7.2. Make a very simple class. Make a class Simple with one attribute i, one method double, which replaces the value of i by

Exercise 7.2. Make a very simple class. Make a class Simple with one attribute i, one method double, which replaces the value of i by i+i, and a constructor that initializes the s1 = Simple (4) for i in range (4) s1.double() print s1i s2 = Simple ('Hello') s2.double(); s2.double() print s2.i s2.1 = 100 print s2.i Before you run this code, convince yourself what the output of the print statements will be. Name of program file: Simple.py
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
