micropython/tests/basics/assign1.py

12 lines
89 B
Python

# test assignments
a = 1
print(a)
a = b = 2
print(a, b)
a = b = c = 3
print(a, b, c)