Python Concepts: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= | =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] | *Command class - [https://refactoring.guru/design-patterns/command] | ||
*Class - | *'''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. | ||
*Object - | *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.