tag:blogger.com,1999:blog-4884932931780433909.post2360148582912225946..comments2023-09-27T01:24:15.962-07:00Comments on TheNewBoston: New forum!Bucky Robertshttp://www.blogger.com/profile/09487652301873140432noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-4884932931780433909.post-81029463108475246382021-05-27T16:45:56.806-07:002021-05-27T16:45:56.806-07:00Hi Bucky,
Amazing Python tutorials (Thank You) I ...Hi Bucky,<br /><br />Amazing Python tutorials (Thank You) I did have a question regarding the: Python Programming Tutorial - 29 - Classes and Objects. I run it in VS Code, and it works perfectly except the life only gets decremented once. So for example with "life = 3" next time it's life = 2, but never get's to "life = 1" or the "I died" message no matter how many times you run it.<br /><br />-----------------<br />class Enemy:<br /> life =3<br /><br /> def attack(self):<br /> print('Ouch!')<br /> self.life -= 1<br /><br /> def checkLife(self):<br /> if self.life <= 0:<br /> print('I am dead!')<br /> else:<br /> print(str(self.life) + " life left") <br /><br />enemy1 = Enemy()<br /><br />enemy1.attack()<br />enemy1.checkLife()<br /><br />OUTPUT:<br /><br />Ouch!<br />2 life left<br />^<br />|<br />Stuck permanently on this value!<br /><br />-----------------<br /><br />...any ideas??<br /><br />Thanks man,<br />ChrisAnonymoushttps://www.blogger.com/profile/15328664308915644362noreply@blogger.comtag:blogger.com,1999:blog-4884932931780433909.post-66105676219871793482020-05-12T07:02:44.713-07:002020-05-12T07:02:44.713-07:00please solve the project euler problems by c++
please solve the project euler problems by c++<br />unknownhttps://www.blogger.com/profile/07645017407768646169noreply@blogger.comtag:blogger.com,1999:blog-4884932931780433909.post-90169517084189050542019-02-12T17:21:53.391-08:002019-02-12T17:21:53.391-08:00Following the instructions in vid 2 of the androie...Following the instructions in vid 2 of the androie tute, I got this error.<br /><br />C:\Users\shlom\java>javac test.java<br />'javac' is not recognized as an internal or external command,<br />operable program or batch file.<br />shlomohttps://www.blogger.com/profile/13372611238437536773noreply@blogger.comtag:blogger.com,1999:blog-4884932931780433909.post-51713636983007157162019-02-12T16:59:29.310-08:002019-02-12T16:59:29.310-08:00I, too, and the incomplete install message but I w...I, too, and the incomplete install message but I was also given a RETRY button and that got everything installedshlomohttps://www.blogger.com/profile/13372611238437536773noreply@blogger.comtag:blogger.com,1999:blog-4884932931780433909.post-59457321660385808032018-09-27T01:53:56.080-07:002018-09-27T01:53:56.080-07:00There was a problem will installing android studio...There was a problem will installing android studio <br />I did everything u said created a JAVA_HOME path bt still its not opening Anonymoushttps://www.blogger.com/profile/12152278529450517283noreply@blogger.comtag:blogger.com,1999:blog-4884932931780433909.post-72712622218628058172018-06-27T05:37:25.271-07:002018-06-27T05:37:25.271-07:00There is a problem occur while installing android ...There is a problem occur while installing android studio.<br />"Android SDK-build tools 28,google repository,android SDK platform 28" these are the components which were not installedAnonymoushttps://www.blogger.com/profile/00836571499866728221noreply@blogger.comtag:blogger.com,1999:blog-4884932931780433909.post-54853851843172394762018-06-09T23:49:01.367-07:002018-06-09T23:49:01.367-07:00Sorry I meant Bucky, my apologies Sorry I meant Bucky, my apologies Anonymoushttps://www.blogger.com/profile/18255847955680571636noreply@blogger.comtag:blogger.com,1999:blog-4884932931780433909.post-14411087249421188412018-06-09T23:47:43.567-07:002018-06-09T23:47:43.567-07:00Hey nicky can you do a video on how to compile and...Hey nicky can you do a video on how to compile and run Ruby in Notepad++ I can't find a tutorial video on this particular subject Anonymoushttps://www.blogger.com/profile/18255847955680571636noreply@blogger.com