How can I call use a variable in bash and use the same variable in python. There are two separate file .bash and .py
.bash file
while read -r x
do
printf "%s\n" ${x} "Found"
done < path/to/file.txt
.py file
print(${x}+"something here")
I want to establish some connection between the two file so the variable the bash holds can be used in the .py file