Adjust Python variables example for Python 2

Explicitly call str() as previously Python 2 seemed to end up calling
repr().
This commit is contained in:
Olly Betts 2022-03-15 18:10:27 +13:00
commit 936e9264e8

View file

@ -2,7 +2,7 @@
import example
print("Variables =", example.cvar)
print("Variables = " + str(example.cvar))
# Try to set the values of some global variables