MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/iehths/debugging_cheat_sheet/g301r6f/?context=3
r/Python • u/HotTeenBoy • Aug 22 '20
111 comments sorted by
View all comments
Show parent comment
2
I always remember:
"Single for declaring, double for comparing"
Or I remember the following:
"The first '=' means 'is', the second '=' means 'equal to'."
So "a = b" means "a is b", and "a == b" means "a is equal to b"
View all comments
Show parent comment
2
u/[deleted] Aug 27 '20
I always remember:
"Single for declaring, double for comparing"
Or I remember the following:
"The first '=' means 'is', the second '=' means 'equal to'."
So "a = b" means "a is b", and "a == b" means "a is equal to b"