Type C : Programming Practice/Knowledge based Questions
1. Write a program to increment the elements of a list with a number.
Answers
Answered by
0
incrementer = 69
my_list = [9, 8, 7, 6, 5, 4, 3, 2, 1]
print([n + incrementer for n in my_list])
Similar questions