Before entering into how Compound Operators work in python, Let’s understand it first. What Are Compound Operators? Basically, Compound operators, often called shorthand operators, combine arithmetic, bitwise, or logical operations with assignment. They make the code cleaner and reduce redundancy. It also shorten the length of program. For instance, instead of saying, “Add b to […]
Below is the simple program to install a package named “vsftpd” in linux OS. You need to import “os” module for that. #!/usr/bin/python3.6 import os try: os.system(‘dnf install vsftpd’) except: exit("Failed to install package")
Recent Blog