Python Concepts: Difference between revisions
Jump to navigation
Jump to search
(Created page with "https://refactoring.guru/design-patterns/command") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
https://refactoring.guru/design-patterns/command | =Intro= | ||
To run python, go into Terminal, and type python to run the python console. You get the >>> prompt. | |||
=Concepts= | |||
*Command class - [https://refactoring.guru/design-patterns/command] | |||
*'''Modules - [https://docs.python.org/3/tutorial/modules.html]'''. Create a program.py, then import program, and then program.funtion(parameter). You will run the function in program, passing in parameter. | |||
*Class - a bundle of data and functionality [https://docs.python.org/3/tutorial/classes.html] | |||
*Object - is an instance of a class | |||
*Method - a function | |||
*Data - variables |
Latest revision as of 03:12, 22 May 2020
Intro
To run python, go into Terminal, and type python to run the python console. You get the >>> prompt.