I want to use valiable of linux system' bash by used python but I cannot do ti.

when I use bash shell I can do :
>echo $BASH_VERSION
>3.1.17(2)-release
I want to use BASH_VERSION by use python.

Please answer for me
THANKS.

The easiest way would be to use:

import os
os.system("echo $BASH_VERSION")
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.