In this i have created a class, within this class a have created 3 methods (functions with a class). I used __init__ which initialises the methods inside the class, I also use __str__ which displays the instance a string.
Please use programming comments throughout. The reasons are:- 1) for yourself so that you have your own notes to refer to when you come back to your code at a later date. 2) to get into good programming habits for the times you will be working in teams and need to sharing code with other like-minded programmers 3) for the moderator who must see your comments and understandings if you are to get that elusive A!
Please use programming comments throughout. The reasons are:- 1) for yourself so that you have your own notes to refer to when you come back to your code at a later date. 2) to get into good programming habits for the times you will be working in teams and need to sharing code with other like-minded programmers 3) for the moderator who must see your comments and understandings if you are to get that elusive A!
ReplyDelete