Ask coding questions

← Back to all posts
Sys.platform Always Returns linux
ZacharyRude (7)

I noticed that, on Replit, sys.platform always returns linux, even if you are on Windows or macOS. Why is it that way on Replit?

ch1ck3n (2335)

because replit serves are on linux

the code not actually being run on your computer

its being ran on the replit servers, which is linux.