Team:Exeter/lab book/glyco/wk2
From 2012.igem.org
Jamesml213 (Talk | contribs) |
Jamesml213 (Talk | contribs) |
||
Line 86: | Line 86: | ||
</font> | </font> | ||
- | 02/07/12 Python features a dynamic typing module, so a variable 'x' can change from int to string or list in a line of code. Python has control statements: | + | <!<p>02/07/12</p> |
- | 1) Pass | + | <p>Python features a dynamic typing module, so a variable 'x' can change from int to string or list in a line of code. Python has control statements: |
- | 2) Control | + | </br>1) Pass |
- | 3) Break | + | </br>2) Control |
+ | </br>3) Break | ||
+ | </br> | ||
#continue statement passes control to next do, for or while statement in which it appears. | #continue statement passes control to next do, for or while statement in which it appears. | ||
#break statement terminates execution of nearest enclosing for/while statement. | #break statement terminates execution of nearest enclosing for/while statement. | ||
#pass is a null operation. | #pass is a null operation. | ||
- | Python 2.7 online tutorial | + | </p> |
+ | <p>Python 2.7 online tutorial</p> | ||
+ | <p> | ||
Boolean variables and number variables can be imported using 'import math'. | Boolean variables and number variables can be imported using 'import math'. | ||
- | Worked with strings and implemented switch statement. Demonstrated break and continue controls within code and printed to screen. | + | </br>Worked with strings and implemented switch statement. Demonstrated break and continue controls within code and printed to screen. |
- | Local and global variable differences studied with method to change global variables inside functions. | + | </br>Local and global variable differences studied with method to change global variables inside functions. |
- | Function created to accept an unlimited number of key-valued pairs. | + | </br>Function created to accept an unlimited number of key-valued pairs. |
- | Recursion, or calling a function inside itself, demonstrated using factorial example. | + | </br>Recursion, or calling a function inside itself, demonstrated using factorial example. |
- | + | </p> | |
- | 03/07/12 Object orientated programming tutorials. | + | </br> |
- | Attributes: Variables | + | <!<p>03/07/12</p> |
- | Functions: Methods | + | <p>Object orientated programming tutorials. |
- | Studied classes, a blueprint for creating objects. | + | </p> |
- | Errors can be caught in Python. All built in errors in Python are contained in a directory. | + | <p>Attributes: Variables |
- | Viewed tutorials for database development with Python and Sqlite3, a built in module within the Python programming language. | + | </br>Functions: Methods |
+ | </p> | ||
+ | <p>Studied classes, a blueprint for creating objects. | ||
+ | </br>Errors can be caught in Python. All built in errors in Python are contained in a directory. | ||
+ | </br>Viewed tutorials for database development with Python and Sqlite3, a built in module within the Python programming language. | ||
</font> | </font> |
Revision as of 12:33, 25 September 2012
Glycobase: 2nd - 6th July 2012 02/07/12Python features a dynamic typing module, so a variable 'x' can change from int to string or list in a line of code. Python has control statements: 1) Pass 2) Control 3) Break #continue statement passes control to next do, for or while statement in which it appears. #break statement terminates execution of nearest enclosing for/while statement. #pass is a null operation. Python 2.7 online tutorial Boolean variables and number variables can be imported using 'import math'. Worked with strings and implemented switch statement. Demonstrated break and continue controls within code and printed to screen. Local and global variable differences studied with method to change global variables inside functions. Function created to accept an unlimited number of key-valued pairs. Recursion, or calling a function inside itself, demonstrated using factorial example. 03/07/12Object orientated programming tutorials. Attributes: Variables Functions: Methods Studied classes, a blueprint for creating objects. Errors can be caught in Python. All built in errors in Python are contained in a directory. Viewed tutorials for database development with Python and Sqlite3, a built in module within the Python programming language. |