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
parent 31f7b437f4
commit 936e9264e8
1 changed files with 1 additions and 1 deletions

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