Skip to Content
Computer Programming for Absolute Beginners
book

Computer Programming for Absolute Beginners

by Joakim Wassberg
July 2020
Beginner
430 pages
9h 3m
English
Packt Publishing
Content preview from Computer Programming for Absolute Beginners

Chapter 6: Working with Data – Variables

In previous chapters, we stated that a program is something that takes data as input and performs operations on it to produce new data. So, handling data is crucial in any application, regardless of whether it is used for accounting or whether it is a game.

When we work with data, it must be stored in the computer's memory, and this is done with variables. It is variables that let us store and retrieve data. In this chapter, we will get to know variables, see how they work, and, in the end, look at some operations that we can perform on them.

In this chapter, you will learn about the following:

  • Declaring and initializing variables
  • Understanding data types and applying them to variables
  • Using composite ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming Languages: Concepts and Implementation

Programming Languages: Concepts and Implementation

Saverio Perugini
Computer Programming and IT

Computer Programming and IT

ITL Education Solutions Limited, Ashok N. Kamthane, Raj Kamal

Publisher Resources

ISBN: 9781839216862