Python Tutorial: Difference between revisions

From Master of Neuroscience Wiki
Line 5: Line 5:
* [[Basic Structure of a Computer]]
* [[Basic Structure of a Computer]]
* [[Representation of Numbers in the Computer]]
* [[Representation of Numbers in the Computer]]
*
*[[Systematic Programming]]
*[[Flow chart symbols]]
*[[Examples]]
*[[Flow chart for baking bread]]


=== Workflow ===
=== Workflow ===
Line 22: Line 25:
* Linux: CTRL + SHIFT + 7 toggles between comment and normal source code.
* Linux: CTRL + SHIFT + 7 toggles between comment and normal source code.
* The function key F2 allows you to change variable and function names. VS Code goes through all the node in your Project directory and changes all occurrences of the function or variable name accordingly. The same is true if you change a file name in a project directory.
* The function key F2 allows you to change variable and function names. VS Code goes through all the node in your Project directory and changes all occurrences of the function or variable name accordingly. The same is true if you change a file name in a project directory.
=== Python: The Basics of the basics ===
* [[Overview]]
* [[Hello, Python]]
** [[input, print, string, int, float]]
* [[Style Rulez]]
* [[Programming Recommendations]]
** [[Assert]]
* [[Basic Math Operations]]
* [[Truth Value Testing]]
* [[Formatted String Literals]]
* [[Flow Control Overview]]
** [[Flow Control: if, elif, else]]
** [[Flow Control: for-loop]]
** [[Flow Control: while, pass, break, continue]]
** [[Flow Control: match case]]
* Sequence Types

Revision as of 12:25, 14 October 2025

How to Python in computational neuroscience, data mining, and more

Flow chart

Workflow

Important VS Code notes:

  • You can mark segments of source node with your mouse (or keyboard) and use the TAB key to increase the level of the indentation or use SHIFT + TAB do decrease the indentation level.
  • Linux: CTRL + SHIFT + 7 toggles between comment and normal source code.
  • The function key F2 allows you to change variable and function names. VS Code goes through all the node in your Project directory and changes all occurrences of the function or variable name accordingly. The same is true if you change a file name in a project directory.

Python: The Basics of the basics