# courses

name: Python
description: Introduction to Python
content:
  Python is a high-level language used to make scripts. The Current version of python is python 3.7, the development of python started in December 1989. The benefit of python is that you do not have to compile python code, you can just save the file and hit run with the IDE.


name: Python
description: Built-in Functions
content:
  Python has many built-in functions. The most basic one is print(), This will print whatever is in the brackets to the window, For example print(“text”) will print ‘text’ to the screen, without the quotations.
  In Python you do not need to declare the datatype of a variable such as string or integer. However you can change what datatype they are by typing str() for string and int() for integer. Be careful converting a number with a decimal only the whole number will be stored for example 10.89 -> 10.
  You can add, subtract, multiply and divide variables with +,-,*,/ respectively, You can also raise numbers by powers by using two multiplication symbols like this **. 
  Variables are created by setting a name and what is stored in the variable such as var = “Hello”, this stores the string “Hello” in the variable called var


name: Python
description: Functions
content:
  In python it is good practice to write all code within a function and pass parameters through the function. To create a function, you need to declare them with a name. For example, if you were to create a function that adds two numbers you would write Def Add(): then the code which adds two numbers together
  IF statements are a powerful tool in programming and can be used in python. An if statement works by checking inf a condition is met and returning either True or False. With an if statement, if the result is true or false different code is accessed for example if you asked if 5>4. If this true you can print(“Yes 5 is larger”) or if its false you can print(“No 4 is larger”) in this case the first option is printed as 5 is greater than 4. This code could be change with variables such as IF x>y. 	


name: Python
description: Lambdas
content:
  Lambdas are one line functions which are assigned to a name and are only used in certain cases, however once utilized properly they are very powerful 


name: Git
description: What is git
content:
  Git is an Open Source Distributed Version Control System. Now that’s a lot of words to define Git.
  •	Control System: This basically means that Git is a content tracker. So Git can be used to store content — it is mostly used to store code due to the other features it provides.
  •	Version Control System: The code which is stored in Git keeps changing as more code is added. Also, many developers can add code in parallel. So Version Control System helps in handling this by maintaining a history of what changes have happened. Also, Git provides features like branches and merges, which I will be covering later.
  •	Distributed Version Control System: Git has a remote repository which is stored in a server and a local repository which is stored in the computer of each developer. This means that the code is not just stored in a central server, but the full copy of the code is present in all the developers’ computers. Git is a Distributed Version Control System since the code is present in every developer’s computer. I will explain the concept of remote and local repositories later in this article.


name: Git
description: Why a Version Control System like Git is needed
content:
  Real life projects generally have multiple developers working in parallel. So a version control system like Git is needed to ensure there are no code conflicts between the developers.
  Additionally, the requirements in such projects change often. So a version control system allows developers to revert and go back to an older version of the code.
  Finally, sometimes several projects which are being run in parallel involve the same codebase. In such a case, the concept of branching in Git is very important.


name: Git
description: Git commands
content:
  1) git config
  Utility : To set your user name and email in the main configuration file.
  2) git init
  Utility : To initialise a git repository for a new or existing project.
  How to : git init in the root of your project directory.
  3) git clone
  Utility : To copy a git repository from remote source, also sets the remote to original source so that you can pull again.
  How to : git clone <:clone git url:>
  4) git status
  Utility : To check the status of files you’ve changed in your working directory, i.e, what all has changed since your last commit.
  How to : git status in your working directory. lists out all the files that have been changed.
  5) git add
  Utility : adds changes to stage/index in your working directory.
  How to : git add .
  6) git commit
  Utility : commits your changes and sets it to new commit object for your remote.
  How to : git commit -m”sweet little commit message”
  7) git push/git pull
  Utility : Push or Pull your changes to remote. If you have added and committed your changes and you want to push them. Or if your remote has updated and you want those latest changes.
  How to : git pull <:remote:> <:branch:> and git push <:remote:> <:branch:>
  8) git branch
  Utility : Lists out all the branches.
  How to : git branch or git branch -a to list all the remote branches as well.
  9) git checkout
  Utility : Switch to different branches
  How to : git checkout <:branch:> or **_git checkout -b <:branch:> if you want to create and switch to a new branch.
  10) git stash
  Utility : Save changes that you don’t want to commit immediately.
  How to : git stash in your working directory. git stash apply if you want to bring your saved changes back.
  11) git merge
  Utility : Merge two branches you were working on.
  How to : Switch to branch you want to merge everything in. git merge <:branch_you_want_to_merge:>
  12) git reset
  Utility : You know when you commit changes that are not complete, this sets your index to the latest commit that you want to work on with.
  How to : git reset <:mode:> <:COMMIT:>
  13) git remote
  Utility : To check what remote/source you have or add a new remote.
  How to : git remote to check and list. And git remote add <:remote_url:>


name: HTML5
description: Intro to HTML5
content:
  HTML5 is the 5th version of HTML (Hypertext Markup Language) HTML is a markup langague that controls the structure of a website. HTML uses tags, most tags need a starting tag <> and a closing tag </>. 


name: HTML5
description: HTML common tags
content:
  There are a few basic HTML tags that are commonly used in each website, these are as follows.
  (html) - to start and close of the page.
                  (body) - define the body where text, images, etc go.
                  (p)- to defines the paragraph of text.
                  (a) - defines a hyperlink that once clicked, redirects the user to the corresponding page.
                  (br)- define to brake the line (sentence or paragraph line )
                  (h1) (h2) or etc is used to write a heading and the size of the heading depend on the h number of example h1 has the largest size. 
                  (title)- defines the page title. 

  Remember not all tags need a closing tag!


name: HTML5
description: How websites are made
content:
  Websites are not only made using HTML. A website can be split into 3 parts: HMTL, CSS and JavaScript. The HTML controls the structure of the website, this is where the content is placed. The CSS (Cascading Style Sheet) is the look of the website such as colours and navigation bars. And finally the JavaScript controls the functionality of the website such as reading from a database.


