0

why the output is 0 when I try to convert int to a string?
I'm searching how to fix it, but can't find it.

here is my code :

import os
value = "cat /home/username/project/value.txt"
print("the value is : " + str(os.system(value))) 

the output is :

726
the value is : 0

i want to make it like this :

the value is : 726
Tzy
  • 1
  • 1
  • 2

0 Answers0