My Computer Tips was launched in 2015 and provides information for common tasks in various Linux distributions and other computer related subjects.
My Computer tips has over 290 tutorials and tips.
If you found the information on My Computer Tips useful, please consider sharing our site details.
ID: 222
Category: Python3
Added: 1st of December 2020
Views: 2,430
To make a system call from your Python script, for example displaying the current version of Python3 using the command python3 --version, we need to use the import os module, and use the os.system function
Create a new file named system_call.py and copy and paste the code below
Linux Forums
Linux Gaming
Other Linux / Computer Sites
Other Sites / Shopping