I want to print the count N letters of string but it result in error can anybody help me?
import subprocess
variable = "making"
s = subprocess.Popen(("grep","-o -w","%s"%variable, "output.txt|wc -w"), stdout = subprocess.PIPE)
output = s.communicate()[0]
print(output)