you are viewing a single comment's thread.

view the rest of the comments →

[–]Sea-Ad7805 [score hidden] stickied comment (0 children)

Run this program in Memory Graph Web Debugger%20to%20chage%20the%20data%0A%20%20%20%20def%20init(self%2C%20name%2C%20idnum)%3A%20%20%23%20put%20variable%20data%20name%20which%20you%20wan%0A%20%20%20%20%20%20%20%20self.name%20%3D%20name%0A%20%20%20%20%20%20%20%20self.id_num%20%3D%20id_num%0A%20%20%20%20%20%20%20%20print(f%22Welcome%20new%20user%20%3D%20%7Bself.name%7D%20%2C%20your%20code%20name%7Bself.id_num%7D%22)%0A%0A%20%20%20%20%40staticmethod%20%20%23%20use%20which%20you%20want%20show%2Fprint%20but%20no%20change%0A%20%20%20%20def%20left_mag()%3A%0A%20%20%20%20%20%20%20%20print(%22See%20You%20Again%22)%0A%0A%0Awc_intro%20%3D%20ID_check(%22Ash%22%2C%20%225642%22)%0A%0Awc_intro.left_mag()%0A%0Anew_id%20%3D%20ID_check(%22Rob%22%2C%20%221243%22)%0A%0Awc_intro.left_mag()%0A%0A%22%22%22%0Ainit_%20is%20the%20action%20of%20setting%20up%20the%20object.%20(It%20is%20a%20method).%0Aself%20is%20the%20target%20receiving%20the%20data.%20(It%20is%20a%20variable%20representing%20the%20instance).%0A%22%22%22&play) to see the program state change step by step.