Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 342 Bytes

what_is_the_result_lvl_1.md

File metadata and controls

23 lines (19 loc) · 342 Bytes

What is the result? - Level 1

What is the result of each of the following statements?

  1. "abc"*3
  2. "abc"*2.5
  3. "abc"*2.0
  4. "abc"*True
  5. "abc"*False
  6. print("xy\tz")
  7. print("xy\"z\'")
  8. "qwer" "xyz"

Solution

  1. abcabcabc
  2. TypeError
  3. TypeError
  4. "abc"
  5. ""
  6. xy z
  7. xy"z'
  8. 'qwerxyz'