Program code:
Clear Doubts with Computer TutorIn case you’re facing problems in understanding concepts, writing programs, solving questions, want to learn fun facts | tips | tricks or absolutely anything around computer science, feel free to join CTs learner-teacher community: students.computertutor.in
Output:
Enter list of integers : 3 1 4 Enter list of integers : 1 5 9 [4, 6, 13]
Two lists of integer are taken input from user.
Using the split() function, they are split into tokens, and elements of list belonging to the same index are added to form a third list.
This list is sum of the two lists taken as input and is printed on console.
Basic python functionality is demonstrated in above program.
To view all the lessons in chapter 1: http://computertutor.in/class-12-computer-science/chapter-2/
To view entire class 12 computer science study material: http://computertutor.in/resources/
You cannot copy content of this page