60 likes | 75 Views
Learn about data types shared in various programming languages such as strings, lists, integers, and floats. Understand binary representations and how 0s and 1s reflect data. Explore why numbers are represented differently in binary and decimal systems.
E N D
Types of Data Similar across many programming language s • String "time 2-fly" • List [2, 6.8, "time 2-fly"] • Integer 2 • Float 6.8
Types of Data Similar across many programming language s • String • List • Integer • Float
Integers in 0s and 1sBinary representation 6 (decimal) = 110 (binary)
What is binary? • Can represent anything digital • Base 2. Only two digits 0 and 1 • Why is 1011 eleven? + + +
Decimal is Base 10 • Ten digits: 0123456789 • Why is 9047 nine thousand forty seven?