import subprocess s = subprocess.run(["date"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) dait = s.stdout.decode().rstrip() print(f"Good {dait} everyone.")