import subprocess def get_os_(): output = subprocess.getoutput("ver") if(int(output.split(".")[2])>=22000): print(output.replace("10","11")) get_os_()