The highlighted line does the magic and swaps the values of previous_value and next_value simultaneously. Be aware that within a programming language that doesn’t assist this type of assignment, you’d really have to use A brief variable to provide precisely the same result: The assignment operator also comes in helpful https://josueyxnbw.amoblog.com/getting-my-hire-someone-to-do-python-assignment-to-work-41358896