Computer Science

Write expression to convert the values 17, len('ab') to (i) integer (ii) str (iii) boolean values

Python Data Handling

20 Likes

Answer

(i) int(17), int(len('ab'))

(ii) str(17), str(len('ab'))

(iii) bool(17), bool(len('ab'))

Answered By

12 Likes


Related Questions