Introduction
Strings let us work with words, sentences, and any text in programs. They help us store and show messages, names, and other text information.
Jump into concepts and practice - no test required
Strings let us work with words, sentences, and any text in programs. They help us store and show messages, names, and other text information.
my_string = "Hello, world!"name = 'Alice'greeting = "Good morning!"empty = ""This program creates a greeting by joining text and a name, then shows it.
name = "Bob" greeting = "Hello, " + name + "!" print(greeting)
Strings are very common and useful in almost every program.
You can join strings using the + sign to make longer messages.
Strings hold text like words and sentences.
They are written inside quotes.
Strings help programs talk with people using text.
name = 'Alice'
print('Hello, ' + name + '!')greeting = Hello print(greeting)