WGU C859 PYTHON TEST
os.link() - ANSWERS-create a hard link pointing to a source
os.getcwd() - ANSWERS-returns string of current working directory
os.chroot() - ANSWERS-change the root directory of current process path
os.remove() - ANSWERS-remove/delete the file path
os.rmdir() - ANSWERS-remove/delete a directory
random.randrange(start,stop, step) - any or all arguments - ANSWERS-return a
randomly selected element
random.randint(a,b) - ANSWERS-return a random integer greater than a, less than
b
random.random() - ANSWERS-return next random floating point; range 0.0 to 1.0
random.choice(seq) - ANSWERS-seq = list; return a random element from the list
, import matplotlib.pyplot - ANSWERS-generates many kinds of plots quickly; works
like MATLAB
PIL.image.open() - ANSWERS-opens up an image
PIL.image.new() - ANSWERS-creates new image
PIL.image.show() - ANSWERS-displays image for debugging
PIL.image.save() - ANSWERS-saves an image in a given filename
pandas.describe() - ANSWERS-generates descriptive statistics, stats summary
pandas.series() - ANSWERS-dataframe; 2 dimensional labeled data structure
slicing (with 9 elements, grabbing the first 3) - ANSWERS-my_list[:3] upper bound
is exclusive
slicing(with 9 elements, grabbing the last 3) - ANSWERS-my_list[6:] lower bound is
inclusive
slicing(with 9 elements, grabbing middle 3) - ANSWERS-my_list[3:6]
os.link() - ANSWERS-create a hard link pointing to a source
os.getcwd() - ANSWERS-returns string of current working directory
os.chroot() - ANSWERS-change the root directory of current process path
os.remove() - ANSWERS-remove/delete the file path
os.rmdir() - ANSWERS-remove/delete a directory
random.randrange(start,stop, step) - any or all arguments - ANSWERS-return a
randomly selected element
random.randint(a,b) - ANSWERS-return a random integer greater than a, less than
b
random.random() - ANSWERS-return next random floating point; range 0.0 to 1.0
random.choice(seq) - ANSWERS-seq = list; return a random element from the list
, import matplotlib.pyplot - ANSWERS-generates many kinds of plots quickly; works
like MATLAB
PIL.image.open() - ANSWERS-opens up an image
PIL.image.new() - ANSWERS-creates new image
PIL.image.show() - ANSWERS-displays image for debugging
PIL.image.save() - ANSWERS-saves an image in a given filename
pandas.describe() - ANSWERS-generates descriptive statistics, stats summary
pandas.series() - ANSWERS-dataframe; 2 dimensional labeled data structure
slicing (with 9 elements, grabbing the first 3) - ANSWERS-my_list[:3] upper bound
is exclusive
slicing(with 9 elements, grabbing the last 3) - ANSWERS-my_list[6:] lower bound is
inclusive
slicing(with 9 elements, grabbing middle 3) - ANSWERS-my_list[3:6]