Questenaتدريب يوضح لك ما ينبغي مراجعته لاحقًا
السؤال 21

What does `" red blue ".strip()` return when no argument is supplied?

  1. `red blue`الإجابة الصحيحة
  2. `redblue`
  3. ` red blue `
  4. ` red blue`

الشرح

The call removes whitespace at both outer edges and preserves the space between the words, yielding `red blue`. Removing internal whitespace as well would describe a different transformation, not the default behavior of `strip`.

تابع هذا الاختبار

بدء التدريب
السؤال 21: What does `" red blue ".strip()` return when no argument is… · Python Fundamentals · Questena