<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 2 Introduction to Python
A series of commands to introduce beginners to Python.      
Does it work?
Step2:  Define Variables
Step3:  Comments are handy to temporarily turn some lines on or off and to document Python files. In Jupyter notebooks using markdown cells gives more control.
Mathematical Operations
Step4:  Logical Operations
Step5:  Exercise
<ASSISTANT_TASK:>
Python Code:
print('Hello, world!')
2 + 2
import numpy
Explanation: 2 Introduction to Python
A series of commands to introduce beginners to Python.      
Does it work?
End of explanation
a_integer = 5
a_float = 1.41421356237
a_integer + a_float
a_number = a_integer + a_float
print(a_number)
a_string = 'How you doing, world?'
print(a_string)
a_integer + a_string
print(a_integer, a_string)
str(a_integer) + a_string
a_float = 3.1417
print(a_float)
who
# This is a comment
This is a multi-
line comment
Explanation: Define Variables
End of explanation
9/3
9/4.0
9%4
2**6
64**(0.5)
Explanation: Comments are handy to temporarily turn some lines on or off and to document Python files. In Jupyter notebooks using markdown cells gives more control.
Mathematical Operations
End of explanation
a = True
b = False
2 == 2.0
2 != 2.000001
6 > 10
if 6 > 4:
    print('Six is greater than four!')
if 6 > 10:
    print('Six is greater than ten!')
else:
    print('Six is not greater than ten!')
a = 25
if a%2 == 0:
    print('This number is even!')
elif a%3 == 0:
    print('This number is divisable by three!')
elif a%5 == 0:
    print('This number is divisable by five!')
else:
    print(str(a) + ' is not divisable by 2, 3 or 5!')
b = 0
while b < 5:
    print(b)
    b = b + 1
b
while True:
    pass
a = 25
b = 1
c = 2
while b != 0:
    b = a%c
    if b == 0:
        print(str(a) + ' is divisable by ' + str(c))
    else:
        c += 1
Explanation: Logical Operations
End of explanation
a = 29
b = 1
c = 2
while b != 0:
    b = a%c
    if a == c:
        print(str(a) + ' is a prime number.')
    elif b == 0:
        print(str(a) + ' is divisable by ' + str(c))
    else:
        c += 1
Explanation: Exercise: Can you rework this code so that you can test if a number is prime (so only it and 1 divides it)
End of explanation
<END_TASK>