Changes between Version 12 and Version 13 of Workshops/HowToRunPythonOnCypress2025August
- Timestamp:
- 08/27/2026 10:45:23 AM (7 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Workshops/HowToRunPythonOnCypress2025August
v12 v13 7 7 }}} 8 8 == What is Python? == 9 Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together.9 Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built-in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components. 10 10 * [https://www.python.org/ Python] 11 11 … … 13 13 Python 3 was incompatible with Python 2. 14 14 ==== Python2 ==== 15 The last version of Python 2, released in 2010, was Python 2.7. The support for this version ended on January 1, 2020.15 The last version of Python 2, released in 2010, was Python 2.7. Support for this version ended on January 1, 2020. 16 16 {{{ 17 17 # HELLO PYTHON … … 26 26 27 27 ==== Python3 ==== 28 Python 3 was not just another version of Python 2 code. Python 3 came with a new syntax intendedto prevent redundant or repetitive code.28 Python 3 was not just another version of Python 2 code. Python 3 introduced new syntax to prevent redundant or repetitive code. 29 29 {{{ 30 30 # HELLO PYTHON … … 37 37 print(socket.gethostname()) 38 38 }}} 39 ==== Python2 or Python3 ? ==== 40 * If you are new to '''Python''' and plan to write '''Python''' code, you should use '''Python 3'''. 41 * If you use a '''Python''' application downloaded from another source, check its documentation to determine which version of '''Python''' is required. 42 * Only use '''Python 2''' if you are required to run or maintain a legacy application that specifically depends on it. 39 43 40 == Why use a HPC Cluster? ==44 == Why use an HPC Cluster? == 41 45 * '''tasks take too long''' 42 46 * When the task to solve becomes heavy on computations, the operations are typically outsourced from the local laptop or desktop to elsewhere.
