Lesson 1: Numbers and Letters, Words and Things

One of the key aspects of programming is data. Information. Things you want to store or keep track of or use or modify, the list goes on. In programming, information is broken into several different categories: Numbers Strings (Words) Characters (Letters) Boolean (a representation of True/False) Each of these categories has specifics that go along with it: How information is handled, how you can access it, how you can change it, but all of them have a few things in common, the foremost of which is assignment. . Assignment is when you assign (get it? they were clever when they invented coding) information, let's say a number, to something called a variable, which holds the information (and can take various types of information, see? various ~ variable, clever..). So here is what we have: Information (let's use word 'vingle') and a variable (let's call it 'ourWord') to put it in. How do we do this? Easy. ourWord = vingle The equals sign here is an 'assignment operator', and does not mean that two things are equal to eachother, rather it states that ourWord is now equal to vingle. ourWord now represents the word 'vingle'. We can do this with other things as well. ourNumber = 2014 ourCharacter = d ourBoolean = True Each of these sets the variable on the left to hold the information on the right. Let's step back for a moment and look at why this is important. If we used these variables in a larger piece of code, we could just replace them with their actual values right? Wrong. Doing this is a REALLY bad habit. Say you mistype 2014 as 2015, and now your program doesn't work because of it. It is much easier and more elegant to use a variable, you can set it at the beginning of your code, and no matter what you do, things will be consistent whether you type 2014 or 2015. The main takeaways from this are that: data comes in various types (numbers, words, characters and booleans), and that we can use things called variables to store this data. We store this data by means of the assignment operator (=). Great job so far! Next time we will be talking about changing a variables information after it has been assigned.

Hey there I'm Bradley. I'm 19 years old. Sailing, traveling, languages and engineering take up most of my life.
Follow
Cards you may also be interested in
[2021-July-Version]New Braindump2go AI-102 PDF and AI-102 VCE Dumps(Q70-Q92)
Alexexampass
1
0
0
입문용 어린이 미니 드론, 스냅테인 H823H 개봉기
jinijinidrone
2
3
0
Top 10 Reasons You Need to Move Your Business to the Cloud
princessritu
2
0
0
How To Solve Touchpad Not Working Issue?
itprospt39
1
0
0
Best Ways To Fix Miracast Available With HDCP Issues
itprospt39
1
0
0
How To Fix The Middle Mouse Button Not Working?
itprospt39
1
0
0
Chlorides Market Share, Industry Trends, Size, Revenue, Demand, Growth Analysis forecast by 2027
kainaatmalhotra
1
0
0
[2021-July-Version]New Braindump2go 350-201 PDF and 350-201 VCE Dumps(Q70-Q92)
Alexexampass
1
0
0
Regenerated Cellulose Market Size, Share, Growth, Potential Revenue and Key Drivers Analysis Research Report by 2027
kainaatmalhotra
1
0
0
Warehouse Robotics Market Business Strategies by Leading Industry Players Forecast to 2027
kainaatmalhotra
1
0
0
How To Deal With The Action Cannot Be Completed Because The File Is Open In Another Program
itprospt39
1
0
0
요즘 대학생들은 다 이걸로 피피티 만들어서 발표함 ㄹㅇ 찐.....ppt
M0ya
82
189
3
50도 폭염 속 두바이, 드론으로 인공 비를 만들다
jinijinidrone
3
3
1
Industrial Lighting Market is Booming Across Globe | Key Player Emerson Electric Co., Signify Holding., GENERAL ELECTRIC COMPANY, Schneider Electric, ACUITY BRANDS LIGHTING, INC.
kainaatmalhotra
1
0
0
모르면 손해보는 기상천외한 에어팟 꿀기능 7가지
nanmollang
41
91
1
전세계에서 가장 많이 팔린 스마트폰 순위
visualdive
7
2
4
The Best Free Architecture Software For Architect To Invest
itprospt39
1
0
0
현실을 초월하는 가상현실, 메타버스!
openads
1
3
0
Wearable Sensors Market Share, Size, Growth Opportunities, Regions, Type and Application, Global Driving Factors by Manufacturers, Revenue Market Forecast to 2027
kainaatmalhotra
1
0
0
Geotechnical Instrumentation Monitoring Market Business Overview and Industrial Trends by Leading Players Forecast to 2027
kainaatmalhotra
1
0
0
4.7 Star App Store Review!
Cpl.dev***uke
The Communities are great you rarely see anyone get in to an argument :)
king***ing
Love Love LOVE
Download

Select Collections