Python: Difference between revisions
Jump to navigation
Jump to search
Line 34: | Line 34: | ||
<syntaxhighlight lang='py'> | <syntaxhighlight lang='py'> | ||
print('something') | print('something') | ||
</syntaxhighlight> | |||
Comments: | |||
<syntaxhighlight lang='py'> | |||
# This is a comment | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 02:04, 13 May 2021
Internal
Subjects
Installation
Mac
brew install python3
Linux
yum install python3
Organizatorium
- https://opensource.com/article/18/1/running-python-application-kubernetes
- Each installation of Python may have different modules installed. Python determines the path to its modules by examining the location of the
python3
executable. - Python environments on Mac:
- ~/Library/ApplicationSupport/iTerm2/iterm2env/versions/*/bin/python3
- ~/Library/ApplicationSupport/iTerm2/Scripts/YourScript/iterm2env/versions/*/bin/python3
Basic Language
Printing done with print() function.
print('something')
Comments:
# This is a comment