Skip to main content
Ctrl+K
itom Documentation - Home
  • Changelog
  • Introduction
  • Installation
  • Getting Started
  • The itom User Interface
    • Plots and Figures
    • Extending the user interface of itom
    • Plugins
    • Python Scripting Language
    • itom Script Reference
    • Miscellaneous
    • Demo scripts
    • Contributing
  • GitHub
  • ITO
  • Changelog
  • Introduction
  • Installation
  • Getting Started
  • The itom User Interface
  • Plots and Figures
  • Extending the user interface of itom
  • Plugins
  • Python Scripting Language
  • itom Script Reference
  • Miscellaneous
  • Demo scripts
  • Contributing
  • GitHub
  • ITO

Section Navigation

  • 9.1. Python-Module itom
  • 9.2. Array class DataObject
  • 9.3. Save and load images and other files
  • 9.4. Popular Python packages
  • 9.5. Python package matplotlib
  • 9.6. Python package plotly
  • 9.7. Python-Module matlab
  • 9.8. Reload modified modules
  • 9.9. Python Limitations in itom
  • 9.10. Python - common problems and solutions
  • 9.11. Python tutorial
    • 9.11.1. Creating a project folder and run a first program
    • 9.11.2. Numbers and math
    • 9.11.3. Variables and names
    • 9.11.4. Strings and text
    • 9.11.5. Dictionaries, Lists and Tuples
    • 9.11.6. If and else statements
    • 9.11.7. Loops and Lists
    • 9.11.8. Classes and Objects
    • 9.11.9. Functions
    • 9.11.10. Modules
    • 9.11.11. Prompting and passing
    • 9.11.12. Reading and writing files
  • 9. Python Scripting Language

9.11. Python tutorial#

The goal of this tutorial is to give prospective itom users a quick overview about the basic Python v3 commands and how to use them within itom.

Content

  • 9.11.1. Creating a project folder and run a first program
  • 9.11.2. Numbers and math
  • 9.11.3. Variables and names
  • 9.11.4. Strings and text
  • 9.11.5. Dictionaries, Lists and Tuples
  • 9.11.6. If and else statements
  • 9.11.7. Loops and Lists
  • 9.11.8. Classes and Objects
  • 9.11.9. Functions
  • 9.11.10. Modules
  • 9.11.11. Prompting and passing
  • 9.11.12. Reading and writing files

The tutorial above has been created based on the following resources. Please also browse to these online tutorials (especially the first links) to get good introductions to Python 3 (always be careful to only read tutorials about Python 3 or be aware of the differences between Python 2 and 3):

  • Python-Kurs (v3) (German)

  • Python Course (v3) (English)

  • Official Python 3 documentation

  • Dive into Python (v3)

  • Numpy for Matlab users

  • Python Tutorial on javas2s.com (v2)

  • Python examples (example source code) on javas2s.com (v2)

  • Python Tutorial on tutorialspoint.com (v2)

  • Moving from Python 2 to Python 3 (Cheatsheet)

previous

9.10. Python - common problems and solutions

next

9.11.1. Creating a project folder and run a first program

Show Source

© Copyright 2011-2024, Institut für Technische Optik (ITO), Universität Stuttgart. Bug report: https://github.com/itom-project/itom/issues.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.15.4.