Python Primer
Fundamentals and practice in Python.
- using Spyder
- run Spyder from Anaconda Navigator
Functions
- Calling of functions
def hello():
"""Print "Hello World" and return None. This is docstring, and can be called by help(hello) from the Console."""
print("Hello World")
# Main program starts here
hello()
- this way the function is defined for the Console and can be called again
- sessions
- visibility in current namespace
- Ctrl+I information about function
- function needs to be run to update, saving file is not enough
- F5 to run, F9 to run selected function
Working with sources
Working with datafiles
note
Goals.
info
Goals.
caution
Goals.
danger
Goals.
Use tabs in admonitions
- Apple
- Orange
- Banana
This is an apple 🍎
npm run build
This is an orange 🍊
This is a banana 🍌
docs/hello.md
# Hello
This is my **first Docusaurus document**!
# Hello
This is my **first Docusaurus document**!
CLICK ME
Em Dash (—) En Dash (–)
Ctrl+Alt+0Soubor ‣ Nový ‣ Obecné. (File ‣ New ‣ General)