Tentative outline of Saturday session

24 views
Skip to first unread message

Dilawar Singh

unread,
Jul 4, 2014, 7:17:30 AM7/4/14
to
After this session you should be able to understand:

1. "Write/Edit code -> compile to bytecode -> run bytecode" Process in Python. Syntax (Structure of the expression - grammar) error and Semantic (meaning behind the expression) errors. Compile-time/run-time errors.

2. Expression and their "types" (or objects and their classes) e.g. I and You are of type "Human" as well as "Mammals" (or object of class Human as well as Mammals). Python as Object Oriented Language. Inheritance (class Human "inherits" features of Mammal).

3. Python shell and other goodies. Executing simple expressions. How to "glue" small expressions together to build complex expressions (Type helps). Python as dynamically typed language. [Sequential execution  and its limitation for modelling Biology]

4. Int, float, strings, list, set and dict. Some operations on them.

5. Operator and Functions. Scope rules.

6. How to avoid bugs. Primitive Python scripts.

We'll take a comparative approach i.e. whenever I have to make a point, I'd not use programming concept but rather contrast it with other language such as C (and sometimes Haskell). You need not know the language but drawing contrast works better than throwing a concept at the uninitiated.
   
--
Dilawar

Dilawar Singh

unread,
Jul 5, 2014, 10:52:20 AM7/5/14
to pn...@googlegroups.com
Hello all, and Umesh.

I was somewhat quick since I had to cover lot of ground. People who had prior experience with Programming followed well. I am not sure about others but they saw Python in action and must have developed some intuitions. Tomorrow TAs can sit with them work things out.

I was able to cover following:

    - Introduction to Spyder IDE. And some idea about command line argument parsing.
    - Type and TypeError, basic arithmetic, string and how to call function on string.
    - How to write and call function. Simple arguments. No variadic argument.
    - Writing a simple class. And instantiating an object. (A note to follow on this).

Hope it helps you prepare for tomorrow.

    Dilawar
Reply all
Reply to author
Forward
0 new messages