CBSE Class 11 Computer Science Question 95 of 173

Data Handling — Question 24

Back to all questions
24
Question

Question 24

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

Answer

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

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

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

Answer