<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Control flow
In a nutshell
Step1:  Exercises
Step2:  Boolean expressions
x != y # x is not equal to y
x > y # x is greater than y
x < y # x is less than y
x >= y # x is greater than or equal to y
x <= y # x is less than or equal to y
Logical operators
and
or 
not
The anatomy of a loop
Statement to be evaluated
Counter
Code to be executed (code block)
While loop example
A while loop repeats until a condition is true or false
python
n = 10
counter = 1
while counter &lt; n
Step3:  For loop example
A for loop repeats a block of code a fixed amount of times.
Step4:  Exercises
<ASSISTANT_TASK:>
Python Code:
1 % 2
Explanation: Control flow
In a nutshell: Allow for a control over a computer program. 
Types of control
If/else statements
Loops 
Boolean statements
Logical statements
The anatomy of if/else statements
Statement to be evaluated
Statement of what will happen if (1) is true
Statement of what will happen if (1) is not true
Example
If the last digit of a social security number is even then subject is female, else the subject is male
python
social_security_number = "123456-1234"
if (int(social_security_number[-1]) % 2 == 0):
    print("subject is female")
else:
    print("subject is male")
End of explanation
# code goes here
Explanation: Exercises: if/else statements
Write a python if/else that evaluate if a number is even or odd and print 
try different numbers and different of numbers of digits in the number.
Extend the if/else statement to print if the person is older or younger that 25 years old
End of explanation
# code for 1
import numpy as np
random_number = np.random.randint(35, 76, 1)  
# put your code below here
# code for 2
import numpy as np
data = np.random.randint(0, 10, 100)  # generate 100 integers between 0 & 10 (both included)
# put your code below here
# Below is function, we get to them soon
# Remember to change the last parameter of the "check_while_loop"
def check_while_loop(orignial_data, new_data):
    tmp = new_data - orignial_data
    if tmp.max() != 1:
        print("something went wrong")
    else:
        print("success!")
        
check_while_loop(data, your_data_here)
Explanation: Boolean expressions
x != y # x is not equal to y
x > y # x is greater than y
x < y # x is less than y
x >= y # x is greater than or equal to y
x <= y # x is less than or equal to y
Logical operators
and
or 
not
The anatomy of a loop
Statement to be evaluated
Counter
Code to be executed (code block)
While loop example
A while loop repeats until a condition is true or false
python
n = 10
counter = 1
while counter &lt; n:
    print(counter)
    counter += 1
Exercises: while loops
Write a while loop that keeps until after a random number of occurences.
add a counter to know how many times it ran.
Write a while loop that goes through the data generated below and adds one to the integer and assign it to a new variable.
End of explanation
n = 10
for i in range(n):  # *i* = counter, *range(n)* the sequence
    print(i)
    
Explanation: For loop example
A for loop repeats a block of code a fixed amount of times.
End of explanation
# code for 1
import numpy as np
random_number = np.random.randint(35, 76, 1)  
# put your code below here
# code for 2
import numpy as np
data = np.random.randint(0, 10, 100)  # generate 100 integers between 0 & 10 (both included)
# put your code below here
# Remember to change the last parameter of the "check_for_loop"
def check_for_loop(orignial_data, new_data):
    tmp = new_data - orignial_data
    if tmp.max() != 1:
        print("something went wrong")
    else:
        print("success!")
        
check_for_loop(data, your_data_here)
Explanation: Exercises: for loops
Write a for loop that keeps running until after a random number of occurences.
add a counter to know how many times it ran.
Write a for loop that goes through the data generated below and adds one to the integer and assign it to a new variable.
End of explanation
<END_TASK>