0% found this document useful (0 votes)
60 views

Codingarticle

This document discusses coding and computer languages. It provides examples of simple Python code that prints text and HTML code that formats a text box on a website. It also discusses using code to animate characters and move a crab character based on coded instructions. The document explains that coding allows us to communicate with computers and is involved in many aspects of modern life, making coding an important skill.

Uploaded by

api-345646825
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

Codingarticle

This document discusses coding and computer languages. It provides examples of simple Python code that prints text and HTML code that formats a text box on a website. It also discusses using code to animate characters and move a crab character based on coded instructions. The document explains that coding allows us to communicate with computers and is involved in many aspects of modern life, making coding an important skill.

Uploaded by

api-345646825
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Coding

As you read Terms for coding


Mark the text using the following symbols:
If ______ then ______
! Surprising Rotate
Step
+ Interesting Stop
? I have a question about this Forward
Backward
:) I like this part Move
! ! Turn

Coding (also called programming or developing) is telling a computer, app, phone or website what you want it
to do and how it should look. Coding tells the computer the font and color of text. It also creates the images of
lightning strikes and snow falling in weather apps. Coding creates the characters in games and tells them how to
move and react. Since we dont speak in the same language as computers, coding allows us to talk to the
computer. In other words, coding tells the computer how to make everything move and work together.

Computer Languages
Computers speak in binary code. Binary code is a series of 1s and 0s grouped together. Like this:

11101001 00110101 00111010 11010110 11111001 00010100 11011110

But it would take years to write instructions in Binary code so there are thousands of other computer languages
we can use. Some languages use symbols and others use text. Here is an example of Python language:

!
This is one of the simplest examples of code. The word print tells the computer what should be displayed on
the screen. Everything that follows the word print will appear just like it is written. That seems easy but not
all coding is as simple as telling the computer what words to display.
Below is the code for a website. The code tells the website how to display text, images, and what to do if
someone clicks on a link. Each line is unique and can be edited.

!
Look at lines 32-36. Notice that these lines tell the computer how to format a text box. It tells the computer to
leave off the border and box-shadow, and how tall and wide to make the box. Here is what the box looks like on
the website:

Coding
Pretend you are a programmer and you want to make a Happy Birthday sign for
anyone who signs into their social media account on their birthday. You want the
computer screen to look like the image on the right.
As a programmer, you can enter code that will change the font, the colors, and make
the stars blink so they look like they are shimmering.

You can also use code to animate characters in a game or movie. As an animator, you
can tell the computer how to move a character in your game.

Coding Movement
Here is an example of the directions to make a crab move around the screen. Read the code (look at the far right
column). Find the following instructions on the picture:
What image is clicked to start any movement?

How long does the music play?

How long before the costume is switched?

Why Code?
Today, computing is involved in almost all aspects of our lives, from communications and education to social
media, banking, information, and security and shopping. Networked computers are capable of controlling our
homes thermostats and lighting, our cars and our health records.
Learning to code prepares students for the world we live in today. There are tons of jobs and occupations that
use code directly, like web designers, software developers and robotics engineers, and even more where
knowing how to code is a huge assetjobs in manufacturing, nanotechnology or information sciences.

Next
Code your Classmate
Practice using code by helping a classmate move through a maze (we will do this as a class).

You might also like