<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 glob contains function glob that finds files that match a pattern
* matches 0+ characters; ? matches any one char
Step1:  results in a list of strings, we can loop oer
we want to create sets of plots
Step2:  We can ask Python to take different actions, depending on a condition, with an if statement
Step3:  second line of code above uses keyword if to denote choice
if the test after if is true, the body of the if are executed
if test false the body else is executed
conditional statements don't have to include else - if not present python does nothing
Step4:  we can also chain several tests together using elif, short for else if
Step5:  NOTE
Step6:  while or is true if at least one part is true
Step7:  Challenge - making choices
Step8:  Challenge - making choices 2
<ASSISTANT_TASK:>
Python Code:
print(glob.glob('data/inflammation*.csv'))
Explanation: glob contains function glob that finds files that match a pattern
* matches 0+ characters; ? matches any one char
End of explanation
# loop here
counter = 0
for filename in glob.glob('data/*.csv'):
    #counter+=1
    counter = counter + 1
print("number of files:", counter)
counter = 0
for filename in glob.glob('data/infl*.csv'):
    #counter+=1
    counter = counter + 1
print("number of files:", counter)
counter = 0
for filename in glob.glob('data/infl*.csv'):
    #counter+=1
    data = numpy.loadtxt(fname=filename, delimiter=',')
    print(filename, "mean is: ", data.mean())
    counter = counter + 1
print("number of files:", counter)
Explanation: results in a list of strings, we can loop oer
we want to create sets of plots
End of explanation
#We use an if statement to take different actions 
#based on conditions
num = 37
if num > 100:
    print('greater')
else:
    print('not greater')
print('done')
Explanation: We can ask Python to take different actions, depending on a condition, with an if statement:
Making choices
last lesson we discovereed something suspicious in our inflammatin data by drawing plots
how can python recognized these different features and act on it
we will write code that runs on certain conditions
End of explanation
num = 53
print('before conditional...')
if num > 100:
    print('53 is greater than 100')
print('...after conditional')
Explanation: second line of code above uses keyword if to denote choice
if the test after if is true, the body of the if are executed
if test false the body else is executed
conditional statements don't have to include else - if not present python does nothing
End of explanation
num = -3
if num > 0:
    print(num, "is positive")
elif num == 0:
    print(num, "is zero")
else:
    print(num, "is negative")
Explanation: we can also chain several tests together using elif, short for else if
End of explanation
if (1 > 0) and (-1 > 0):
    print('both parts are true')
else:
    print('at least one part is false')
Explanation: NOTE: we use == to test for equality rather than single equal b/c the later is the assignment operator
we can also combine tests using and and or. and is only true if both parts are true
End of explanation
if (1 < 0) or (-1 < 0):
    print('at least one test is true')
Explanation: while or is true if at least one part is true:
End of explanation
if 4 > 5:
    print('A')
elif 4 == 5:
    print('B')
elif 4 < 5:
    print('C')
Explanation: Challenge - making choices:
Which of the following would be printed if you were to run this code? Why did you pick this answer?
A
B
C
B and C
python
if 4 &gt; 5:
    print('A')
elif 4 == 5:
    print('B')
elif 4 &lt; 5:
    print('C')
End of explanation
if '':
    print('empty string is true')
if 'word':
    print('word is true')
if []:
    print('empty list is true')
if [1, 2, 3]:
    print('non-empty list is true')
if 0:
    print('zero is true')
if 1:
    print('one is true')
Explanation: Challenge - making choices 2:
True and False are special words in Python called booleans which represent true and false statements. However, they aren’t the only values in Python that are true and false. In fact, any value can be used in an if or elif. After reading and running the code below, explain what the rule is for which values are considered true and which are considered false.
python
if '':
    print('empty string is true')
if 'word':
    print('word is true')
if []:
    print('empty list is true')
if [1, 2, 3]:
    print('non-empty list is true')
if 0:
    print('zero is true')
if 1:
    print('one is true')
End of explanation
<END_TASK>