Skip to content
Pooja Bhatia Classes Hari Nagar
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
Pooja Bhatia Classes Hari Nagar

9 BE B

2. Change the above code so that it works as stated in previous question.

sa 12 cs chapter 9 / PythonCSIP CS IP

2. Change the above code so that it works as stated in previous question. Read More »

4. Consider a list ML = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]. Write code using a list comprehension that takes the list ML and makes a new list that has only the even elements of this list in it.

sa 12 cs chapter 9 / PythonCSIP CS IP

# Code ML = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] new = [i for i in ML if i%2 == 0] # i%2 == 0 checks for even numbers print(new) # [4, 16, 36, 64, 100]

4. Consider a list ML = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]. Write code using a list comprehension that takes the list ML and makes a new list that has only the even elements of this list in it. Read More »

Post pagination
← Previous 1 … 5 6 7 … 11 Next →
  • We teach following classes
    • Class 12
    • Class 11
    • Class 10
    • Class 9
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship
  • We teach following classes
  • Sumita Arora IP/CS Solutions
  • Jobs/Internship

Copyright © 2026 Pooja Bhatia Classes Hari Nagar | Powered by Pooja Bhatia Classes Hari Nagar.