#!/usr/bin/python3 from os import system system("uptime") from subprocess import getoutput time = int(getoutput("uptime | grep ....days -o ").strip().split()[0]) if(time > 365): print("This computer has been on a long time!") else: print("Is this a laptop or something?")