I understand sudo doesn't run a command as the current user, but I don't understand why the two following commands produce differing outputs:
Case 1:
user@.../folder$ sudo python
Python 2.7.17 (default, Nov 7 2019, 10:07:09)
[GCC 7.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Case 2:
user@.../folder$ sudo su
(base) root@.../folder# python
Python 3.7.6 (default, Jan 8 2020, 19:59:22)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.