This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
<div id="layout"> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
This is a command line program designed to identify and | |
group all files (non-directories) in a given directory and | |
move each file type (“.csv”, “.py”, “.txt”, etc) into a named | |
directory of the file type. The program will create a new directory | |
for any file type that does not have a directory but will not overwrite | |
existing directories. The program takes the following arguments: | |
directory: a string path to the directory to be organized | |
-v: verbose output option | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Return an array of length 2 with a[0] representing the mean of the ten integers as a floating point number. | |
There will always be 10 integers and 10 characters. Create a single string with the characters and | |
return it as a[1] while maintaining the original order. | |
""" | |
def mean(lst): | |
#split list into integers and strings | |
lst_mean = [int(i) for i in lst if i.isdigit()] | |
lst_str = list(filter(lambda x: not x.isdigit(), lst)) |