Skip to content

Instantly share code, notes, and snippets.

@prodeveloper
Created April 21, 2017 09:46
Show Gist options
  • Save prodeveloper/773f91f3fa47d5f2e3863a55f58b20b5 to your computer and use it in GitHub Desktop.
Save prodeveloper/773f91f3fa47d5f2e3863a55f58b20b5 to your computer and use it in GitHub Desktop.
Review of semester 1

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.

  1. Indentation: Python codeblocks are is organized using indentations. Examples of codeblocks include conditionals, loops, methods and classes.

  2. 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

  3. 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

  4. 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

  5. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment