<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Python Syntax
In this tutorial notebook, you will learn how to do programming in python and Jupyter (formerly named as ipython). Open a new python notebook, try to copy and paste the following codes to play with. 
When you read the following codes, you will see how simple and clear Python syntax is. 
<a href="https
Step2:  Hello World! in other language
Python
python
print("Hello World!") 
Fortran
fortran
    PROGRAM HELLO
    WRITE (*,100)
    STOP
100 FORMAT (' Hello World! ' /)
    END
Lisp
lisp
(print "Hello World!")
C++
```cpp
include <iostream.h>
main()
{
    cout << "Hello World!" << endl;
    return 0;
}
```
Java
java
class HelloWorld {
  static public void main( String args[] ) {
    System.out.println( "Hello World!" );
  }
}
Matlab
octave
disp('Hello World!');
JavaScript
javascript
document.write('Hello World!')
Jupyter Notebook
operations
Step3:  The magic command (used in jupyte notebook)
Any command starts with % are magic command in ipython notebook. These % command can only be used in ipython instant. A full list of magic command can be found here
Step4:  Import package and library
Python has a lot of library. Use expression like
python
import xxxxxxx
or
python
from xxxxxxx import yyyyyy
to import library provided that you know the name of your library xxxxxx and objects yyyyyyy in the library xxxxxxx.
Package is not loaded at the beginning, you need to import it before using it.
Step6:  Comments Are Marked by #
Step7:  A Statement
Remember end of line will terminate a statement. To produce a multi-line code we will add \ to the end of line
Step8:  It is also possible to continue expressions on the next line within parentheses, without using the \ marker
Step9:  Sometimes it can be useful to put multiple statements on a single line.
Step10:  A Note on the print() Function¶
```python
Python 2 only!
print "first value
<ASSISTANT_TASK:>
Python Code:
# make a list
students = ['boy', 'boy', 'girl', 'boy', 'girl', 'girl', 'boy', 'boy', 'girl', 'girl', 'boy', 'boy']
boys = 0; girls = 0
for s in students:
    if s == 'boy':
        boys = boys +1
    else:
        girls+=1
        
print("boys:", boys)
print("girls:", girls)
Explanation: Python Syntax
In this tutorial notebook, you will learn how to do programming in python and Jupyter (formerly named as ipython). Open a new python notebook, try to copy and paste the following codes to play with. 
When you read the following codes, you will see how simple and clear Python syntax is. 
<a href="https://colab.research.google.com/github/ryan-leung/PHYS4650_Python_Tutorial/blob/master/notebooks/01-Python-Syntax.ipynb"><img align="right" src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open in Colab" title="Open and Execute in Google Colaboratory">
</a>
End of explanation
print("Hello", "World!")
print("Tips 3: Use \ to escape an characters like \"")
print("Tips 4: Use \\n \n to make a newline character")
print(Tips 5: Use three \" to 
make 
multiple 
line
)
Explanation: Hello World! in other language
Python
python
print("Hello World!") 
Fortran
fortran
    PROGRAM HELLO
    WRITE (*,100)
    STOP
100 FORMAT (' Hello World! ' /)
    END
Lisp
lisp
(print "Hello World!")
C++
```cpp
include <iostream.h>
main()
{
    cout << "Hello World!" << endl;
    return 0;
}
```
Java
java
class HelloWorld {
  static public void main( String args[] ) {
    System.out.println( "Hello World!" );
  }
}
Matlab
octave
disp('Hello World!');
JavaScript
javascript
document.write('Hello World!')
Jupyter Notebook
operations:
Click on the cell to select it.
Press SHIFT+ENTER on your keyboard or press the play button (<button class='btn btn-default fa-step-forward fa'><span class="toolbar-btn-label">Run</span></button>) in the toolbar above.
Open new cells using the plus button (<button class='btn btn-default fa-plus fa' title="Run"></button>)
You may read the following tutorial for more information:
https://www.datacamp.com/community/tutorials/tutorial-jupyter-notebook
Let's us print a Hello World! statement
Write
python
print("Hello World!") 
into the cell below:
Press SHIFT+ENTER on your keyboard!
Screen Output
To enter more than one line in a cell, press Enter. The print function will print all the objects seprated by a comma , on the same line, the output will have . For example,  print "Hello", "World!" will have a space between Hello and World!.
End of explanation
%timeit sum(range(100000))
Explanation: The magic command (used in jupyte notebook)
Any command starts with % are magic command in ipython notebook. These % command can only be used in ipython instant. A full list of magic command can be found here: 
http://ipython.readthedocs.io/en/stable/interactive/magics.html. 
These commands are particularly useful in developing and debugging your program.
Performance test
you can time a statement with %timeit and it will output a basic execution time.
End of explanation
import numpy
numpy
import numpy as np
np
Explanation: Import package and library
Python has a lot of library. Use expression like
python
import xxxxxxx
or
python
from xxxxxxx import yyyyyy
to import library provided that you know the name of your library xxxxxx and objects yyyyyyy in the library xxxxxxx.
Package is not loaded at the beginning, you need to import it before using it.
End of explanation
# Declare x=0
x=0
x += 2  # shorthand for x = x + 2
Multi line Strings can also be used as comment (a docstring)
x += 2
Explanation: Comments Are Marked by #
End of explanation
x = 1 + 2 + 3 + 4 + 5 \
    + 6 + 7 + 8
Explanation: A Statement
Remember end of line will terminate a statement. To produce a multi-line code we will add \ to the end of line
End of explanation
x = (1 + 2 + 3 + 4 +
     5 + 6 + 7 + 8)
Explanation: It is also possible to continue expressions on the next line within parentheses, without using the \ marker:
End of explanation
boys = 0; girls = 0
Explanation: Sometimes it can be useful to put multiple statements on a single line.
End of explanation
for s in students:
    if s == 'boy':
        boys = boys +1
    else:
        girls+=1
Explanation: A Note on the print() Function¶
```python
Python 2 only!
print "first value:", 1
first value: 1
```
```python
Python 3 onwards
print("first value:", 1)
first value: 1
```
In order to use print function in python 2, you may execute at the beginning
python 
from __future__ import print_function
Indentation: space ot tab, but don't mix it up
End of explanation
<END_TASK>