Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 225 Bytes

conversion.md

File metadata and controls

19 lines (15 loc) · 225 Bytes

Conversion

What is the result of each of the following statements?

  1. int(False)
  2. int(True)
  3. bool(0)
  4. bool(1)
  5. True + 2
  6. float(True)

Solution

  1. 0
  2. 1
  3. False
  4. True
  5. 3
  6. 1.0