bookmate game

R.M. Lewis

  • Dušica Gavrilovi殩™ Novi Pazar, Srbija ©®™idézett2 évvel ezelőtt
    Chapter 1: Why Should I Learn How to Use Python?
  • danieliwilliams22idézett7 hónappal ezelőtt
    ome of the attributes that are important when working in Python include:
    __bases__: this is considered a tuple that contains any of the superclasses
    __module__: this is where you are going to find the name of the module and it will also hold your classes.
    __name__: this will hold on to the class name.
    __doc__: this is where you are going to find the reference string inside the document for your class.
    __dict__: this is going to be the variable for the dict. inside the class name.
  • danieliwilliams22idézett7 hónappal ezelőtt
    These go by many different names including classes, entities, functions, and variables.
  • danieliwilliams22idézett7 hónappal ezelőtt
    The identifier is not able to contain one of the keywords.
  • danieliwilliams22idézett7 hónappal ezelőtt
    you want to make sure that the name is easy to read because you want to allow others to read
  • danieliwilliams22idézett7 hónappal ezelőtt
    Picking out a name that is descriptive
  • danieliwilliams22idézett7 hónappal ezelőtt
    descriptive can help as well because it will allow you to remember what you wanted the identifier to do in the first place
  • danieliwilliams22idézett7 hónappal ezelőtt
    For Python, it is going to read the codes from the top to bottom
  • danieliwilliams22idézett7 hónappal ezelőtt
    Write out each of the parts of the code on a separate line to help the flow of control
  • danieliwilliams22idézett7 hónappal ezelőtt
    These are going to be the strings of code that you write out to tell the compiler what you would like to have done when the code is executed.
fb2epub
Húzza és ejtse ide a fájljait (egyszerre maximum 5-öt)