Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary The Basics of Programming

Rating
-
Sold
-
Pages
2
Uploaded on
26-03-2026
Written in
2025/2026

This document contains a summary for programming basics and this aims to help individuals who are struggling with learning about programming. From talking about the difference of text-based programming vs block-based programming to learning about conditional statements, this document might just be what you need for learning about programming if you're a beginner.

Show more Read less
Institution
Course

Content preview

The Basics of Programming

A.​ Text-based and block-based programming
Text-based programming- when you write code or instruction for a computer using words
and symbols. (ex. Python/Pycharm)

Block-based programming- this is when you write code or instruction for a computer by
connecting blocks instead of typing text code.(ex. mBlock)

Programming is the process of designing and writing instructions for a computer to perform
specific tasks. Computer program- program is a collection of code that performs a specific
task when executed by a computer. A programmer is the person who writes the code that
makes it possible for a program to work efficiently.

B.​ Variables and data types
A variable is used to store data that can be used in your program.
Here are some rules when naming a variable:
-​ A variable name:
1.​ must start with a letter or the underscore character.
2.​ can only contain letters, numbers and underscores.
3.​ cannot start with a number
4.​ cannot contain space
5.​ is case sensitive meaning the variable “Section” is different to variable “section”

A data type refers to a specific type of data or value stored in a variable.
The two commonly used data types are as follows:

1.​ String type (str)- used to store non-numeric data such as letters, words and alpha
numeric data.
2.​ Numeric type- used to store numerical values.

a.​ Integer(int)- contains positive and negative whole numbers.
b.​ Float- contains positive and negative values with decimal numbers.
c.​ Sequence- used to store multiple items in 1 variable.

III. Operators
-​ These are special symbols that perform operations on variables and values.
1.​ Arithmetic operators- used to perform mathematical operations on variables and
values.
2.​ Comparison operator- used to compare variables and values.

IV. Conditional Statements
-​ Used to control the flow of a program based on whether a condition is true or false.
If statement- used to perform a line of code if the condition is true.

Written for

Course

Document information

Uploaded on
March 26, 2026
Number of pages
2
Written in
2025/2026
Type
SUMMARY

Subjects

$6.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
lovieejavier

Get to know the seller

Seller avatar
lovieejavier
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 month
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions