Coding Booklet 3-5
Coding Booklet 3-5
Basics of
CODING
WHAT IS CODING?
Just a few years ago, computer coding seemed like a mysterious skill that
could only be practised by specialists. To many people, the idea that coding
could be fun was a strange one. But then the world changed. In the space of
a few years, the Internet, email, social networks, smartphones, and apps hit
us like a tornado, transforming the way we live in.
Computers are a huge part of life that we all now take for granted. Instead of
calling someone on the phone, we send a text message or use social media.
From shopping and entertainment to news and games, we guzzle everything
computers have to offer. But we can do more than just use this technology, we
can create it. If we can learn to code, we can make our digital masterpieces.
Everything computers do is controlled by lines of code that someone has
typed out on a keyboard. It might look like a foreign language, but it’s a
language anybody can pick up quite quickly. Many would argue that coding
has become one of the most important skills you can learn in the 21st century.
Computers don’t speak the same language as you and me. They are machines
and the original computers operated with a set of switches that were either on
or off (binary). Coding is a way of bridging the gap between how computers
operate and how humans think. It’s just enough words that they, hopefully,
make sense to us, and that set of instructions, or code, is then compiled into
something the machine can understand.
2
step-by-step instructions written by a computer programmer.
Few of them are listed below:
3
• Games: Consoles are just another type
of computer, and all the games that run
on them are programs. All the graphics,
sounds, and controls are written in
computer code.
ALGORITHM
An algorithm is a set of simple instructions for performing a task. A program
is an algorithm that has been translated into a language that computers can
understand.
4
WHAT DOES IT TAKE TO BE A PROGRAMMER?
A programmer must learn to think like a computer. All tasks must be broken
down into small chunks so that they are easy to follow and impossible to get
wrong. A programmer must have the following qualities:
• having an eye for style and good design
• need to be able to think in a logical, precise and rigorous way
• capable of framing problems the right way
• patience
5
• JAVASCRIPT: Programmers use JavaScript to create interactive
features that run on websites, such as advertisements and games.
• ADA: ADA is a state-of-the-art programming language that development
teams worldwide are using for critical software: from microkernels and
small-footprint, real-time embedded systems to large-scale enterprise
applications, and everything in between.
• SCRATCH: Beginners often start with simple programming languages
such as Scratch. Instead of typing out code, you build scripts with ready-
made blocks of code.
• PYTHON: PYTHON is a very popular, all-purpose language. The lines
of code are shorter and simpler than in other languages, making it easier
to learn. Python is a great language to learn after Scratch.
WHAT IS SCRATCH?
The Lifelong Kindergarten group of Media Lab of MIT, which was headed by
Mitchel Resnick, and Playful Invention Company, the consulting company
of Media lab in Montreal, worked together to develop the first desktop-
based version of Scratch. It was released in the year 2003. Scratch is a visual
programming language that makes coding simple. It can be used to make all
sorts of fun and interesting programs. Scratch is a great way to start coding.
Programs are created by connecting blocks of code, instead of typing it out.
Scratch is quick and easy to use, and also teaches you the key ideas you
need to use other programming languages. It is perfect for making games
and animations. It has large collections (or “libraries”) of cool graphics
and sounds that you can play around with. Scratch is designed especially for
age group of 8 to 16 but is used by people of all ages. Millions of people are
creating Scratch projects in a wide variety of settings, including homes, schools,
museums, libraries, and community centres. Scratch is a project of the Lifelong
Kindergarten Group at the MIT Media Lab. It is provided free of charge.
WHAT IS PYTHON?
Python is a general-purpose interpreted, interactive, object-oriented, and
high-level programming language. It was created by Guido van Rossum
during 1985- 1990. Python is a text-based programming language. It takes
a bit longer to learn than Scratch but can be used to do much more. People
around the world use Python to build games, tools, and websites. It’s a
great language to master because it can help you build all kinds of different
programs. Python looks like a mixture of recognizable words and characters,
so it can be easily read and understood by humans. Python is a versatile
language that can be used to make many different types of programs, from
word processing to web browsers. Python is a general-purpose, versatile
and popular programming language. It’s great as a first language because
7
it is concise and easy to read, and it is also a good language to have in any
programmer’s stack as it can be used for everything from web development
to software development and scientific applications.
Python is a versatile language that can be used to make many different types
of programs, from word processing to web browsers. Here are a few great
reasons to learn Python.
• Easy to learn and use: Python programs are written in a simple
language. The code is quite easy to read and write, compared to many
other programming languages.
• Contains ready to use codes: Python contains libraries of
preprogrammed code that you can use in your programs. It makes it
easier to write complex programs quickly.
• Useful for big organizations: Python is powerful. It can be used to
write real-world programs. It is used by Google, NASA, and Pixar, among
others.
IDLE
IDLE is Python’s Integrated Development and Learning Environment. IDLE
helps you run and write programs in python. IDLE has the following features:
• Coded in 100% pure Python, using the Tkinter GUI toolkit
• Cross-platform works mostly the same on Windows, Unix, and macOS
• Python shell window (interactive interpreter) with colourizing of code
input, output, and error messages
• Multi-window text editor with multiple undo, Python colourizing, smart
indent, call tips, auto-completion, and other features
• Search within any window, replace within editor windows and search
through multiple files (grep)
• Debugger with persistent breakpoints, stepping, and viewing of global
and local namespaces
• Configuration, browsers, and other dialogues