Coding for Beginners in easy steps
eBook - ePub

Coding for Beginners in easy steps

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Coding for Beginners in easy steps

Book details
Book preview
Table of contents
Citations

About This Book

Coding for Beginners in easy steps has an easy-to-follow style that will appeal to anyone, of any age, who wants to begin coding computer programs. You need have no previous knowledge of any computer programming language so it's ideal for the newcomer, including youngsters needing to learn programming basics for the school curriculum.The book instructs you how to write code to create your own computer programs. It contains separate chapters demonstrating how to store information in data structures, how to control program flow using control structures, and how to create re-usable blocks of code in program functions. There are complete step-by-step example programs that demonstrate each aspect of coding, together with screenshots that illustrate the actual output when each program has been executed. Coding for Beginners in easy steps begins by explaining how to easily create a programming environment on your own computer, so you can quickly begin to create your own working programs by copying the book's examples. The examples throughout this book feature the popular Python programming language but additionally the final chapter demonstrates a comparison example in the C, C++, and Java programming languages to give you a rounded view of computer coding.

Frequently asked questions

Simply head over to the account section in settings and click on ā€œCancel Subscriptionā€ - itā€™s as simple as that. After you cancel, your membership will stay active for the remainder of the time youā€™ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlegoā€™s features. The only differences are the price and subscription period: With the annual plan youā€™ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weā€™ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Coding for Beginners in easy steps by Mike McGrath in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Languages. We have over one million books available in our catalogue for you to explore.

Information

1
Getting started
Welcome to the exciting, fun world of computer coding! This chapter describes how to create your own programming environment and demonstrates how to code your very first program.
Programming code
Setting up
Exploring IDLE
Getting help
Saving programs
Storing values
Adding comments
Naming rules
Summary
Programming code
A computer is merely a machine that can process a set of simple instructions very quickly. The set of instructions it processes is known as a ā€œprogramā€, and the instructions are known as ā€œcodeā€.
People who write computer programs are known as ā€œprogrammersā€ or ā€œcodersā€. Their programs have enabled computers to become useful in almost every area of modern life:
ā€¢In the hand ā€“ computers are found in cellphone devices for tasks such as communication via voice, text, and social media
ā€¢In the home ā€“ computers are found in household devices such as TV sets, gaming consoles, and washing machines
ā€¢In the office ā€“ computers are found in desktop devices for tasks such as word processing, payroll, and graphic design
ā€¢In the store ā€“ computers are found in retail devices such as automatic teller machines (ATMs) and bar code scanners
ā€¢In the car ā€“ computers are found in control devices for tasks such as engine management, anti-lock braking and security
ā€¢In the sky ā€“ computers are found in airplanes for piloting and in air traffic control centers for safe navigation
image
These are, in fact, just a few examples of how computers affect our lives today. Yet, computers are really dumb! They can only count from zero to one, and cannot think for themselves.
A computer is a collection of electronic components ā€“ collectively known as ā€œhardwareā€. To make the computer function it must be given a set of program instructions ā€“ known as ā€œsoftwareā€.
It is important that each computer program provides clear step-by-step instructions that the computer can execute without errors. The coder must therefore break down the task required of the computer into simple unambiguous steps. For example, a program to move a mobile robot from indoors to outdoors must include instructions to have the robot locate a doorway and navigate around any obstacles. So the coder must always consider what possible unexpected difficulties a program may encounter.
Program instructions must be presented to the computer in a language it can understand. At the most basic level the computer can understand ā€œmachine codeā€, which moves items around in its memory to perform tasks. This type of obscure low-level code is incredibly tedious as it requires many lines of instruction ...

Table of contents

  1. Cover
  2. Title
  3. Copyright
  4. Contents
  5. Preface
  6. 1 Getting started
  7. 2 Saving data
  8. 3 Performing operations
  9. 4 Making lists
  10. 5 Controlling blocks
  11. 6 Creating functions
  12. 7 Sorting algorithms
  13. 8 Importing libraries
  14. 9 Managing text
  15. 10 Programming objects
  16. 11 Building interfaces
  17. 12 Developing apps
  18. 13 Transferring skills
  19. Back Cover