Home‎ > ‎ICT Programming‎ > ‎Python‎ > ‎

Python Textbook

How to Think Like a Computer Scientist: Python Edition 

        Full Textbook Here


  1. 1  The way of the program

    1. 1.1  The Python programming language

    2. 1.2  What is a program?

    3. 1.3  What is debugging?

    4. 1.4  Formal and natural languages

    5. 1.5  The first program 

    6. 1.6  Debugging

    7. 1.7  Glossary 

    8. 1.8  Exercises


  1. 2  Variables, expressions and statements 

    1. 2.1  Values and types 

    2. 2.2  Variables

    3. 2.3  Variable names and keywords

    4. 2.4  Operators and operands 

    5. 2.5  Expressions and statements 

    6. 2.6  Interactive mode and scriptmode

    7. 2.7  Order of operations

    8. 2.8  String operations 

    9. 2.9  Comments

    10. 2.10  Debugging

    11. 2.11  Glossary 

    12. 2.12  Exercises  


    1. 3.1  Function calls 

    2. 3.2  Type conversion functions

    3. 3.3  Math functions

    4. 3.4  Composition

    5. 3.5  Adding new functions 

    6. 3.6  Definitions and uses 

    7. 3.7  Flow of execution

    8. 3.8  Parameters and arguments

    9. 3.9  Variables and parameters are local 

    10. 3.10  Stack diagrams 

    11. 3.11  Fruitful functions and void functions

    12. 3.12  Why functions? 

    13. 3.13  Importing with from 

    14. 3.14  Debugging

    15. 3.15  Glossary 

    16. 3.16  Exercises 


    4 Case study: Interface Design

    1. 4.1  TurtleWorld 

    2. 4.2  Simple repetition 

    3. 4.3  Exercises 

    4. 4.4  Encapsulation 

    5. 4.5  Generalization

    6. 4.6  Interface design 

    7. 4.7  Refactoring

    8. 4.8  A development plan 

    9. 4.9  doc string

    10. 4.10  Debugging

    11. 4.11  Glossary

    12. 4.12  Exercises  



Comments