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

sa 12 cs chapter 9

3. Modify your previous code so that SqLst stores the doubled numbers in ascending order.

sa 12 cs chapter 9 / PythonCSIP CS IP

3. Modify your previous code so that SqLst stores the doubled numbers in ascending order. 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 … 9 10 11 … 24 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 © 2025 Pooja Bhatia Classes Hari Nagar | Powered by Pooja Bhatia Classes Hari Nagar.