top of page

Data Types: Strings

Data Types: Numbers

Data Types: Strings

Concatenation

Conversion

Data Types: Booleans

Checkpoint

Summary

If we would like to store or print a word instead of a number, we can use the string data type. We use double- or single- quotation marks to denote strings.

​

Let's try creating a variable to store a string:

1 message = "Hello, world!"

2 print(message)

3 print(type(message))

bottom of page