Through semester 1. We learnt all about the basics of Python.
In this lesson we shall go through some of the major areas we covered.
-
Indentation: Python codeblocks are is organized using indentations. Examples of codeblocks include conditionals, loops, methods and classes.
-
Conditionals: Inadvertently you will need to take a different execution path in your code due to a factor. Python allows you to do this by use of if, elif and else constructs. See https://gist.github.com/prodeveloper/a822dea2ad427dd502553d120b2e06f2
-
Loops: What makes computers so powerful is their ability to do a task many times. Loop constructs such as while and for help us in this respect. See https://gist.github.com/prodeveloper/59c239c7885ef01c2788afd2d64ceb54
-
Methods: As your codebase grows, you will eventually write code that needs to be reused. Python allows us to pack such codes into methods, classes and modules. So far we have learnt about methods. See https://gist.github.com/prodeveloper/2265950d1a807b79ddd2269d75d33037
-
External functionality: The python community has done a lot of the work for you. There is a library for almost any functionality you can think about. You use this functionality by importing the module into your own codebase. See https://gist.github.com/prodeveloper/6d991eb671ecc13e969dcbaea687fa17
By the end of the semester, we could combine all we have learned to build simple games such as the guessing game.
In the coming semester, we shall be moving on to the more advanced concepts of:
- Object oriented programming
- Using frameworks
- Integrating backend with the front end
##Class assignment
Research on how classes are defined and used in python.