Wang Fu Egypt

🔤 Strings

Unit 2 · Programming building blocks · 8 min

A string is text in quotes: "Cairo". Concatenate: "Hi " + "Ali" gives "Hi Ali". len("Cairo") is 5. .upper() capitalises letters. "5" and 5 differ: one is text, one is a number.

Words in this lesson

  • 字符串 (zì fú chuàn) — string
  • 引号 (yǐn hào) — quotation mark

Project: Write a program that asks your name and prints a greeting plus its letter count.

Back to track · Learn

埃中王府
Wang Fu Egypt
加载中…