Python is a great language for developing thermodynamic training resources. Below is a few coding examples to demonstrate finding the thermal efficiency of various steam cycles that I have written over the last few years.
All code is free to use/reuse, but comes with no warranty whatsoever.

Carnot cycle ideal efficiency
An example of calculating cycle efficiency using the programming language Python.

Rankine cycle ideal efficiency
An example of calculating cycle efficiency using the programming language Python.

Rankine superheat cycle ideal efficiency
An example of calculating cycle efficiency using the programming language Python.

Rankine reheat cycle ideal efficiency
An example of calculating cycle efficiency using the programming language Python.

Rankine supercritical cycle ideal efficiency
An example of calculating cycle efficiency using the programming language Python.

Rankine supercritical double reheat cycle ideal efficiency
An example of calculating cycle efficiency using the programming language Python.

Rankine superheat cycle non-ideal efficiency
An example of calculating cycle efficiency using the programming language Python.

Rankine superheat cycle non-ideal efficiency (hiRes)
An example of calculating cycle efficiency using the programming language Python.

Rankine reheat cycle non-ideal efficiency
An example of calculating cycle efficiency using the programming language Python.

Rankine reheat cycle non-ideal efficiency (hiRes)
An example of calculating cycle efficiency using the programming language Python.

Rankine superheat regenerative cycle with closed heater
An example of calculating cycle efficiency using the programming language Python.

Rankine superheat regenerative cycle with open heater
An example of calculating cycle efficiency using the programming language Python.

Rankine reheat regenerative cycle with open heater
An example of calculating cycle efficiency using the programming language Python.

Rankine Nuclear (PWR) cycle
An example of calculating cycle efficiency using the programming language Python.

Password Generator
A version of my password generator application (available on Software download page), but written in python using PyQT5.
more to come soon!