Beginner s Step by Step Coding Course Learn Computer Programming the Easy Way Dk 2024 scribd download
Beginner s Step by Step Coding Course Learn Computer Programming the Easy Way Dk 2024 scribd download
com
https://ebookmeta.com/product/beginner-s-step-by-step-
coding-course-learn-computer-programming-the-easy-way-dk/
OR CLICK BUTTON
DOWNLOAD NOW
https://ebookmeta.com/product/lua-programming-the-ultimate-beginner-s-
guide-to-learn-lua-step-by-step-claudia-alves-alexander-aronowitz-
alves/
ebookmeta.com
https://ebookmeta.com/product/male-bodies-and-sexual-difference-a-
proposal-for-a-feminist-corporeo-ethics-1st-edition-ovidiu-
anemtoaicei/
ebookmeta.com
Convolution like Structures Differential Operators and
Diffusion Processes Lecture Notes in Mathematics 2315
Rúben Sousa
https://ebookmeta.com/product/convolution-like-structures-
differential-operators-and-diffusion-processes-lecture-notes-in-
mathematics-2315-ruben-sousa/
ebookmeta.com
https://ebookmeta.com/product/the-dark-triad-of-personality-
narcissism-machiavellianism-and-psychopathy-in-everyday-life-1st-
edition-minna-lyons/
ebookmeta.com
https://ebookmeta.com/product/calculus-volume-2-gilbert-strang/
ebookmeta.com
https://ebookmeta.com/product/emotional-advantage-embracing-all-your-
feelings-to-create-a-life-you-love-randy-taran/
ebookmeta.com
The Luck of Fitzwilliam Darcy A Pride and Prejudice
Variation 1st Edition Glenna Mason
https://ebookmeta.com/product/the-luck-of-fitzwilliam-darcy-a-pride-
and-prejudice-variation-1st-edition-glenna-mason/
ebookmeta.com
BEGINNER’S
STEP-BY-STEP
CODING
COURSE
LEARN COMPUTER PROGRAMMING THE EASY WAY
DK DELHI
Senior editor Suefa Lee
Project art editor Sanjay Chauhan
Project editor Tina Jindal
Art editors Rabia Ahmad, Simar Dhamija,
Sonakshi Singh
Assistant editor Sonali Jindal
Jacket designer Tanya Mehrotra
DTP designer Jaypal Chauhan
Pre-production manager Balwant Singh
Senior managing editor Rohan Sinha
Managing art editor Sudakshina Basu
DK LONDON
Project editor Miezan van Zyl
US editor Kayla Dugger
Project art editor Francis Wong
Managing editor Angeles Gavira Guerrero
Managing art editor Michael Duffy
Associate publishing director Liz Wheeler
Publishing director Jonathan Metcalf
Art director Karen Self
Jacket design development manager Sophia MTT
Producer (pre-production) Gillian Reid
Senior producer Meskerem Berhane
DK books are available at special discounts when purchased in bulk for sales
promotions, premiums, fund-raising, or educational use. For details, contact:
DK Publishing Special Markets, 1450 Broadway, Suite 801, New York, NY 10018
[email protected]
Printed in China
A WORLD OF IDEAS:
SEE ALL THERE IS TO KNOW
www.dk.com
CONTRIBUTORS
Clif Kussmaul is Principal Consultant at Green Mango Dr. Tammy Pirmann is a computer science professor
Associates, LLC, where he designs and implements at the College of Computing and Informatics at Drexel
research projects, faculty development workshops, and University in Philadelphia, Pennsylvania. She is an
classroom activities. Formerly, he taught for 20 years at award-winning educator, recognized for her focus on
college level and worked full and part time in software equity in computer science education and for promoting
development and consulting. Craig was a Fulbright guided inquiry in secondary computing education. She
Specialist at Ashesi University and a Fulbright-Nehru was the co-chair of the Computer Science Teachers
Scholar at the University of Kerala. He has received Association’s Standards Committee and an advisor on
multiple grants from the US National Science Foundation, the K12 CS Framework.
Google, and other sources to support his work with
Process Oriented Guided Inquiry Learning (POGIL), Dr. Martin Goodfellow is a Lecturer in the
Free and Open Source Software (FOSS), and other topics Computer and Information Sciences department
in computer science education. at the University of Strathclyde. He has also developed
educational computer science content and workshops
Sean McManus writes and cowrites inspiring coding for other organizations worldwide, including Google,
books, including Mission Python, Scratch Programming Oracle, CoderDojo Scotland, Glasgow Life, Makeblock,
in Easy Steps, Cool Scratch Projects in Easy Steps, and the BBC.
and Raspberry Pi For Dummies.
Jonathan Hogg is an audiovisual artist who has
Craig Steele is a specialist in computer science spent the last decade constructing works out of
education who helps people develop digital skills in combinations of software, electronics, sound,
a fun and creative environment. He runs Digital Skills light, wood, plastic, and metal. He often works
Education and is a founder of CoderDojo in Scotland, with young people, running creative and technical
which runs free coding clubs for young people. Craig workshops. Prior to art, Jonathan designed and
has run digital workshops with the Raspberry Pi developed software in the London finance industry.
Foundation, Glasgow Science Centre, Glasgow School He began his career researching and teaching
of Art, and the BBC micro:bit project. Computing at the University of Glasgow. The
only constant in all of this has been Python.
Dr. Claire Quigley studied Computing Science at
Glasgow University, where she obtained a BSc and David Krowitz learned to program in the early
PhD. She has worked in the Computer Laboratory at 1980s on a Commodore VIC-20 plugged into a
Cambridge University and at Glasgow Science Centre. portable black-and-white TV set. He has been studying
She is currently STEM Coordinator with Glasgow Life, and practicing computer programming ever since.
and lectures part time at the Royal Conservatoire of Nowadays, Dave spends his time building microservice
Scotland, working with BEd Music students. Claire architecture for businesses while expounding his love
has been involved in running CoderDojo Scotland since for object-oriented design patterns and software
its initial session in 2012. architecture. See dotpusher.com for more info.
CONTENTS FOREWORD
INTRODUCTION
10
12
What is programming? 16
Programming languages 22
SCRATCH
What is Scratch? 28 Logic and decisions 44
Manipulating data 42
PYTHON
What is Python? 94 Libraries 116
Functions 112
WEB TECHNOLOGIES
How the Web works 206 JavaScript debugging 280
Build a better website 214 PROJECT: Animating the web page 288
Foreword
If you’ve ever asked a teenager for help with your Starting at the absolute beginning, this guide will
computer, you probably have felt the crushing introduce the jargon and tools you’ll need to get
weight of self-doubt as you realize you understood programming in the most popular and versatile
less than half of what they just said. That same software languages. The pages are also peppered
“helpful teen” would most likely scoff at the idea of a with interesting facts about coding and careers,
book—made out of honest-to-goodness, old-fashioned together with step-by-step projects to get you going.
paper—on the subject of learning to code. “Just Even if you decide not to become the next Mark
Google it. There are loads of tutorials on YouTube!” Zuckerberg, the skills you’ll learn will be a great
they might say. asset when talking to technology professionals
But not everyone is high-bandwidth, multiscreen and will also help develop your own logic and
ready. Plus, when you are carefully stepping through problem-solving abilities.
the creation of your first lines of code, a physical page It was an ancient Greek philosopher who first noted
with your fingertip planted firmly on the next step can the irony “the only constant in life is change,” and
act as a valuable lifeline to the tangible world. this has never been more true than in the world of
If you’re reading this as a teenager yourself, computing. Maybe you’re looking for a different career
congratulations on discovering life beyond YouTube! or want to learn a new skill to support a hobby or
You’re about to find out that the creators of this guide passion project. Or perhaps you just want to be able
are exactly the kind of industry-defining professionals to talk to your tech-obsessed teenager in a language
whose content channels, blogs, and social media posts that will impress them!
you’d end up on if you did decide to Google “learning For those curious about coding, this guide is full of
to code.” straightforward information in easily digestible bites,
As a lifelong gamer and computing enthusiast, written by some of the leading educators and experts
I’ve been reporting on technology for almost a quarter in their field. There is jargon, but it’s jargon you’ll
of a century. In that time, I’ve witnessed seismic understand as you get to it. Is learning about coding
changes in the way we interact with the world. AI, essential? No. Will it help you understand and feel
big data, automation, e-commerce—all now intrinsic more comfortable in the world we now live in? I think
parts of our daily routines, even if we aren’t always so. Could it lead to a new and amazing career
aware of them. direction? Definitely, if that’s what you want.
Technology is no longer a niche topic. In fact, There is still a desperate shortage of technology
today, every industry could be considered a tech professionals in the workforce. Opportunities exist,
industry, which leads to a simple choice: get with but they are not going to come looking for you unless
it or get left behind. you speak at least a bit of their language.
Kate Russell
Technology reporter,
author, and gamer
About this book
How this book works grouped under Web Technologies. The book defines
Divided into three chapters, this book teaches the the basic concepts of each programming language and
fundamentals of five programming languages: Scratch, builds on them with the help of detailed projects that
Python, HTML, CSS, and JavaScript; the last three are you can try on your own.
Concepts
Each chapter contains the basic
programming concepts of the language.
These are explained with the help of
practical code examples that you can try
out to understand the concept better.
Illustrations help
you understand
and learn concepts
Projects
The projects in this book teach you how to YOU WILL LEARN
create games, planners, apps, and websites. Indicates the estimated
Each project starts with a brief overview of Time: time it will take to create
what you will learn in the project, how to 1 hour a project
plan the project, and what you will need to
create it. Simple step-by-step instructions Lines of code: 58 Indicates the estimated lines
guide you through the project and explain of code in a project. This
Difficulty level may vary depending on the
every aspect of the code, with the help of
detailed annotations. code editor being used
1.2
Projects are broken down into 1.1
smaller sections with clear steps
to make learning easier
available = 2500.00
budgets = {}
STEP-BY-STEP
These chevrons appear only in Every indent (spaces at the start of a line)
the shell window. Type in the equals four empty grid blocks. All subsequent
code at the >>> prompt indents will be in multiples of four
In this book, ellipses are used at the Gray code indicates an CODE WINDOW FOR The placement of the arrow
start of a line of code to indicate an existing line of code in WEB LANGUAGES indicates if a space needs to
extended indent, usually more than the program. It is used be added before it. In instances
eight grid blocks to identify the line below where there will be no space,
or above which the new no empty grid blocks are left
code must be added between the arrow and the code
*
* *
*
* *
*
* *
Il avait parlé ainsi. J’avais cru sentir se réfugier contre moi cette
grande détresse. Et j’avais vu monter dans ses yeux une tendresse
implorante qui ne s’y était jamais montrée. Mais mon âme la
meilleure, qui se fût émue de tout cela, continuait d’être absente, et
ce qui avait pu naître durant ces quelques semaines n’existait plus à
côté de ce qui était né depuis ces quelques jours.
Je le croyais du moins… je le croyais… Mais pourquoi les
ombres heureuses s’en étaient-elles véritablement allées du jardin ?
Quand je descendis un peu plus tard, comme chaque jour, pour les y
chercher, je ne pus les retrouver. — Et je sentais maintenant à leur
place rôder cette ombre pesante qui s’attachait à Fabien et qu’il me
fallait traîner avec lui.
Notre promenade ce jour-là nous conduisit au delà du Rhône,
jusqu’à Villeneuve, si morne, si morte, avec ses rues où pousse
l’herbe et ses palais abandonnés. Au retour, comme nous étions las,
nous nous assîmes un instant au bord de la route. Le soir venait. Il
faisait presque froid. Autour de nous, parmi la campagne, et devant
nous dans Avignon, les lampes s’allumaient au fond des maisons.
Enveloppée dans mon manteau, tout près de Fabien qui se
serrait contre moi, je pensais à notre maison qui était là-bas, un peu
plus au nord, derrière les collines déjà bien sombres sur le ciel gris.
En ce moment Adélaïde avait, elle aussi, allumé la lampe et
Guicharde s’asseyait devant la table pour m’écrire une fois de plus :
« Quand allez-vous revenir ? » C’est la question que, depuis une
semaine, me posaient toutes ses lettres. Elle trouvait le temps long.
Elle s’ennuyait. Elle s’étonnait un peu. « Fabien, remarquait-elle, doit
avoir pris maintenant tout le repos nécessaire. » Pensant à elle, je
pensais à ce foyer dont elle était restée la gardienne. Y reviendrions-
nous jamais ? Pourrions-nous y revenir et recommencer de vivre là
comme nous y avions vécu après que Fabien m’aurait enfin parlé,
quand nous aurions regardé ensemble dans le passé la minute
effrayante, et dans l’avenir, tous les jours, tous les mois et les
longues années ?…
*
* *