There is a problem occur while installing android studio. "Android SDK-build tools 28,google repository,android SDK platform 28" these are the components which were not installed
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.
----------------- class Enemy: life =3
def attack(self): print('Ouch!') self.life -= 1
def checkLife(self): if self.life <= 0: print('I am dead!') else: print(str(self.life) + " life left")
enemy1 = Enemy()
enemy1.attack() enemy1.checkLife()
OUTPUT:
Ouch! 2 life left ^ | Stuck permanently on this value!
8 comments:
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
Sorry I meant Bucky, my apologies
There is a problem occur while installing android studio.
"Android SDK-build tools 28,google repository,android SDK platform 28" these are the components which were not installed
There was a problem will installing android studio
I did everything u said created a JAVA_HOME path bt still its not opening
I, too, and the incomplete install message but I was also given a RETRY button and that got everything installed
Following the instructions in vid 2 of the androie tute, I got this error.
C:\Users\shlom\java>javac test.java
'javac' is not recognized as an internal or external command,
operable program or batch file.
please solve the project euler problems by c++
Hi Bucky,
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.
-----------------
class Enemy:
life =3
def attack(self):
print('Ouch!')
self.life -= 1
def checkLife(self):
if self.life <= 0:
print('I am dead!')
else:
print(str(self.life) + " life left")
enemy1 = Enemy()
enemy1.attack()
enemy1.checkLife()
OUTPUT:
Ouch!
2 life left
^
|
Stuck permanently on this value!
-----------------
...any ideas??
Thanks man,
Chris
Post a Comment