PYTHON BASICSChapter 1 · Python Basics
Words and text
A string is text wrapped in quotes. You can glue strings together with +, repeat them with *, and ask how long one is with len().
Worked example
How it reads
- + joins strings end to end, so "night" + "sky" becomes "nightsky"
*repeats a string, so "night" * 3 is "nightnightnight"- len(first) counts the characters, here 5

Cloud tip: Quotes can be "double" or 'single', as long as both ends match.


