Emphy's Python Tutorials | How to Switch Variable Values | With and Without Introducing New Variable

preview_player
Показать описание
A video demonstrating a simple code on how to switch variable values.
Рекомендации по теме
Комментарии
Автор

NOTE: In the explanation of the code in the second variant, for the line 'a = a-b', I say "so it becomes (a+b)-(a-b)". In this line, note that the values of a and b in '(a+b)' are different from those in '(a-b)'. Thus here (a+b)-(a-b) is equal to b, and not 2b.

emphyspythontutorials
visit shbcf.ru