Category: Python3
Added: 1st of December 2020
Viewed: 101 times
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
Other Tips & Tutorials
Python3
Learning Python3, Generate a random number using Python3Posted: 8th of December 2020
Views: 102
Python3
Learning Python 3, getting basic user input and printing the resultsPosted: 7th of December 2020
Views: 110
Python3
Create a new window using GTK and Python in Ubuntu and Ubuntu based distributionsPosted: 19th of November 2020
Views: 109
Python3
How to create a basic Python3 script in Ubuntu and Ubuntu based distributionsPosted: 28th of April 2020
Views: 462