When you start coding, it's important to know about data types. Data types tell the computer what kind of information you're using. Let’s take a look at three common data types: integers, strings, and booleans.
Integers:
age = 13
Strings:
name = "Alice"
greeting = "Hello, " + name
# Result: "Hello, Alice"
Booleans:
is_teenager = age >= 13 and age <= 19
true
if the age is between 13 and 19.Knowing these data types helps you store and work with information in your programs better!
When you start coding, it's important to know about data types. Data types tell the computer what kind of information you're using. Let’s take a look at three common data types: integers, strings, and booleans.
Integers:
age = 13
Strings:
name = "Alice"
greeting = "Hello, " + name
# Result: "Hello, Alice"
Booleans:
is_teenager = age >= 13 and age <= 19
true
if the age is between 13 and 19.Knowing these data types helps you store and work with information in your programs better!