EzCode's Website

Lesson 1:How to start coding?

There are many type of programming languages. Most websites uses HTML,CSS and Javascript. However, Here you will be learning the most common programming language of all!!

PYTHON!

Lets get on with coding!

Lesson 2:Basic codes?

Usually when you load up a code file, it would come with the following.

print("Hello World!")

What this code means is that you are asking python to run the code "print" which tells Python it need to run the code "print". Python will then run the print code and print everything inside of its brackets () so you will have to be careful of what you typed into the brackets.

Lesson 3:What are comments.

Comments are used in most codes to let your future self or other people who are reading your code understand what your code is doing or what it means. I personally like to start my code with a comment.

#This code aims to do (task)
(Codes)


#This is the execution portion of my code.

for the (task) portion I would enter why I am doing this code and for the (Codes) portion will enter all the necessary codes but I mainly use functions which you will learn in Lesson .

Lesson 4:What are variables?

Variables are just words to store the value that follows behind. For Example:

var = 14

That code will associate the variable var with the value 14 and this can be done with any words so words like Cat,Dogs.Even gibberish like afagifawkfw works fine too.

Lesson 5:Data types.

There are a total of 6 Data Types. Intger,String,Boolean,Arrays(list),Tuple and Dictionary.

10 #is a integer
"This is a string"
True False #is a Boolean
Array = ["This","is","how","an","array","would","look","like"]
Tuple =(This is how a tuple looks like)
D = {"This": 1,"is": "how","a": "dictionary","would": "look","like": 3,"name": "EzCode","age": 16}

Each data value has its own purpose. They are as following:

An Integer represents just numbers and has its own tag int() or float()

A String represents a text and is always denoted with " " or ' ' and has its own tag str()

A Boolean only has 2 type of values. True and False

An Array represents a list of items and ais always denoted with a

variable = []