Last week i have told you about the book "How to Automate the Boring Stuff with Python". Right now I have read 2 Chapters of this book and in conclusion
Dragon Realm Part 1 & 2
Recently in my twenty percent project, I have reached chapter six in invent with python. This chapter talks about the first game. Part 1 talks about the basis of the code and how complex it is to make and you must learn several things, to remind you of what you use and when you use it. In this circumstances the def block is one of the important ones, where you learn about the global scope and the local scope. In part 2, essential piece of information is that you can put code inside the parentheses, this is called a parameter. By using the parameters, we can use it to call old functions. In the recent project, we were creating our own functions and calling them by parentheses, by making your own functions coding is easier and more simple. The Code I used: import random import time def displayIntro(): print('You are in a land full of dragons. In front of you,') print('you see two caves. In one cave, the dragon is friendly') p...
Comments
Post a Comment