Essay Learn How to Code

6934 Words Oct 5th, 2015 28 Pages
Learn to Code:
The Full Beginner's Guide
By Adam Dachis of

You can contact Adam Dachis, the author of this post, at You can also follow him on
Twitter and Facebook

Learn How to Code Part I:
Variables and Basic Data Types
Link to YouTube Video
Want to learn how to code but don't know where to start? We've got you covered. We'll be teaching you the basics all week, and here's your first lesson.
Previously we've provided you with some resources for learning to code and given you a broad overview of the process, but now it's time to get down to business: We're offering a short 101 course, step by step. You can't learn to code overnight (or in a week), but we've broken up the basics into a few
…show more content…
Once you have the basics down it should be easy to begin learning other languages.
Let's get started!

What Are Variables?
You can think of variables as labeled jars that store different types of data. While there are several kinds of variables, today we're only going to look at three:
• String - A string variable is a string of alphanumeric characters and allowed symbols that are contained within quotation marks. For example, "Hello world, I'm 102 years old today!" is an example of a string. Strings can also be contained within single quotes, which is useful if you want to have a string with a quotation like this: '"I hate the snow," Laurel said.' Strings are basically used for storing text.
• Number - A number variable couldn't be more straightforward because all number variables store are numbers. You don't store them within quotes like strings. Instead, numbers can just be written as they are. If you want to store the number 9 in a variable, you just write 9.
• Boolean - A boolean variable is one of two things: true or false. This data type is kind of like an on and off switch, so you can ask true or false questions in your code. For example, you might ask "is the video currently playing?" The response you'd get would be a boolean variable. True would mean the video is currently playing and false would mean it is not.
So how do you putt a variable to

Related Documents