NameError: name 'c' is not defined

old, old C programmer, new to Python3

File “/Users/john/Dropbox/Code/PROJECTS/Free Cell/Display/testcoord.py”, line 4, in coordstotext
c,d == int(a), int(b)
NameError: name ‘c’ is not defined

code

output:

z = [1.1, 2.2]
1.1 2.2
Traceback (most recent call last):
File “/Users/john/Dropbox/Code/PROJECTS/Free Cell/Display/testcoord.py”, line 11, in
print(coordstotext(z))
File “/Users/john/Dropbox/Code/PROJECTS/Free Cell/Display/testcoord.py”, line 4, in coordstotext
c,d == int(a), int(b)
NameError: name ‘c’ is not defined

question":
line 2 - local variables a,b created and initialized AOK
why a problem with line 4, c,d = , same format as line 2?

On line 4 you are testing for equality with the double == instead of doing an assignment with a single =.

ah! stupid mistake - did not notice doubled = - sorry - thanks!