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 2

3. Write a program that takes any two lists L and M of the same size and adds their elements together to form a new list N whose elements are sums of the corresponding elements in L and M. For instance, if L = [3,1,4] and M = [1, 5,9], then N should equal [4, 6, 13].

sa 12 cs chapter 2 / PythonCSIP CS IP

# Code L = list(map(int, input(‘Enter list of integers : ‘).split())) M = list(map(int, input(‘Enter list of integers : ‘).split())) if len(L) = len(M): N = [L[i]+M[i] for i in range(len(L))] print(N)

3. Write a program that takes any two lists L and M of the same size and adds their elements together to form a new list N whose elements are sums of the corresponding elements in L and M. For instance, if L = [3,1,4] and M = [1, 5,9], then N should equal [4, 6, 13]. Read More »

7. What would be the output of following code if ntp1 = (“Hello”, “Nita”, “How’s”, “life ?”) ?

sa 12 cs chapter 2 / PythonCSIP CS IP

7. What would be the output of following code if ntp1 = (“Hello”, “Nita”, “How’s”, “life ?”) ? Read More »

Post pagination
← Previous 1 … 6 7 8 … 22 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.