Programming Basics/Variables

Variables are tools which are used to store data.

Programming languages often use types to distinguish different kinds of data stored in variables.

Data Type Description Example 1 Example 2 Example 3
Integer Any whole number. 1 300 48
Character A letter of the alphabet. a z y
String A collection of text Wikibooks Programming Basics Hello world!