As woooee already mentioned, don't use the Python Shell (has those screwy looking >>> prompts) for writing programs. The Shell is only used for testing small parts of code.
You can modify woooee's code ...
a = 
a = os.listdir('.')
for t in a:
f = open(t,'r')
print t, "opened"
data_str = f.read()
# do something with the data string later ...
# break here if you only want the first file
print " ", t, "not a file"
# now process your data string
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...