-1

So in my program i need to know if the program is running in, say, Windows 7 or 10. is there any method or module that can do that?

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
lambda
  • 3
  • 2

1 Answers1

1
import platform


print("Platform :- "+platform.platform())
print("OS:- "+platform.system())
print("Version:- "+platform.version())
print("release:- "+platform.release())