Download as:
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Language:EN
Pages: 1
Words: 377

You are viewing 1/3rd of the document.
Purchase the document to get full access instantly.

Immediately available after payment
Both online and downloadable
No strings attached

Help available disk space attached physical drives

import argparse

import os

parser.add_argument('--system-name', action='store_true', help='display system name')

parser.add_argument('--ip-addresses', action='store_true', help='display IP addresses by interface')

parser.add_argument('--printers', action='store_true', help='display list of configured printers')

args = parser.parse_args()

print('IP Addresses:')

for interface, addresses in psutil.net_if_addrs().items():

print('Operating System:')

print(platform.system())

for line in cpuinfo.split('\n'):

if 'model name' in line:

for line in meminfo.split('\n'):

if 'MemTotal' in line:

if 'loop' not in partition.device and 'cdrom' not in partition.device:

usage = psutil.disk_usage(partition.mountpoint)

for line in printers.split('\n'):

if line.startswith('printer '):

Copyright © 2009-2023 UrgentHomework.com, All right reserved.