0% found this document useful (0 votes)
4 views2 pages

Introduction to Coding and Variables

The document provides an introduction to coding, programming, HTML, and applications, explaining their definitions, purposes, and types. It also covers Python programming basics, including modes, syntax errors, and the concept of variables, along with rules for naming them. Key programming concepts such as output display, mathematical operations, and variable sensitivity are highlighted.

Uploaded by

21hotilo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

Introduction to Coding and Variables

The document provides an introduction to coding, programming, HTML, and applications, explaining their definitions, purposes, and types. It also covers Python programming basics, including modes, syntax errors, and the concept of variables, along with rules for naming them. Key programming concepts such as output display, mathematical operations, and variable sensitivity are highlighted.

Uploaded by

21hotilo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Lesson 1:

1. Coding

Definition: The process of writing instructions in a specific language that a computer can
understand and execute.

Purpose: To create software, websites, apps, games, and other digital tools.

Process: Involves using programming languages and following specific syntax and logic
rules.

2. Program

Definition: A set of instructions written in a programming language that tells a computer how
to perform a specific task or set of tasks.

Examples: Web browsers, word processors, video games, operating systems.

Types: Range from simple scripts to complex software applications.

3. HTML

Definition: HyperText Markup Language, the foundation language for structuring and
presenting content on the web.

Purpose: Defines the basic structure of a web page, including elements like headings,
paragraphs, images, and links.

How it works: Uses tags (e.g., <h1>, <p>, <img>) to mark up text and designate its
meaning and structure.

4. App

Definition: Short for "application," a software program designed to perform a specific


function or set of functions.

Types: Mobile apps, desktop apps, web apps.

Access: Mobile apps are typically downloaded from app stores and run on smartphones or
tablets, while desktop apps are installed on computers, and web apps are accessed through
web browsers.

Python has 2 modes


1. IDLE - IntegratedDeveLopmentEnvironment
2. Script mode - Unlike IDLE, script mode allows you to save your programs.

● Print allows you to display output


● Syntax Error- Is a mistake that you make when you are typing your program for
example: spelling mistakes, missing speech marks, missing punctuation, missing
brackets, wrong case
● \n is used to brake a line
● % is a modular sign just shows the remainder
● // is a sign that give the answer and doesn’t show the remainder
● / division
● * is x

Lesson 2 variables
- A variable is when the computer remembers the answer so that it can be
used later
- You need to tell the program number = 5
/ \
Variable value

Rules for variable names:

The variable name must make sense to you as it will help you when you
need to use it in your programming.

It cannot be a dedicated word that Python already uses such as “print”.

Keep it short as you will need to refer to it again so avoid variable names
that are too long.

You cannot use any mathematical symbols in the variable name.

It must not contain any spaces.

You can use “Camel Case” for variable names where you use a capital
letter for the beginning of each word e.g.: FirstName. It is called camel
case as it ends up with “humps”.

Variables are case sensitive so make sure you remember if you use
upper, lower or camel case.

You might also like