List Comprehension
- Print the cubes of the positive integers till 10.
- Print the two digit positive integers which are multiplication of 7 or/and 13.
Dictionary Comprehension
Set Comprehension
- Print unique odd numbers from the list.
Interview Questions
1. Rewrite the following code using list comprehension..
Answer:
2. Transpose the following matrix with list comprehension.
Answer: