SyntaxFix
Write A Post
Hire A Developer
Questions
Tags
If I have list=[1,2,3] and I want to add 1 to each element to get the output [2,3,4], how would I do that?
list=[1,2,3]
1
[2,3,4]
I assume I would use a for loop but not sure exactly how.
This question is related to python loops addition
python
loops
addition
Source: Stackoverflow.com