What is a 'String' in Python?

Asked by blessing007 · 4 months ago

1 Answer

8
amorebise · 4 months ago Top Answer

A string is just a fancy name for text. Anything you put inside quotes—like "Jollof Rice" or 'Abuja'—is a string.

Think of it like a string of beads. Each letter is a bead, and Python holds them all together. You can even join strings together using the + sign, which we call concatenation. It’s like joining two pieces of a broken necklace.

Log in to add a comment.