Python Tips And Tricks - Vegibit
vegibit.com › python-tips-and-tricksA cool trick you can do in Python is to easily swap variables. Let’s see how this works. First, we have two variables with some data and print them out getting what we would expect. tom, jerry = 'Tom', 'Jerry' print(tom, jerry) Tom Jerry To reverse what each variable holds, all we have to do is swap the order like so.