What will the last comparison print? What happens if we change the strings to contain numbers? Go!

Estimated read time 1 min read

Post Content

​ Python developers: Test your knowledge with this string based puzzle! In Python, comparing string identity with the ‘is’ operator can yield unexpected results. Can you predict what this code will output and explain the pattern behind these results? Try running it with different strings and share your insights in the comments.

Subscribe to Google for Developers → https://goo.gle/developers

Speakers: Crystal Endless   Read More Google for Developers 

You May Also Like

More From Author