I am using os.system method in Python to open a file in Linux.
But I don't know how to pass the variable (a) inside the os.system command
import os
a=4
os.system('gedit +a test.txt')
How can i pass the variable as an integer inside the command?
os.system('gedit +{} test.txt'.format(a))