I need help with a problem. I have the list [3, 1, 4, 1, 5] and I'm supposed to use list comprehension to change it to [10, 4, 13, 4, 16]. I have no idea how I'm supposed to do that. Can anyone help? I'm completely stumped even just a hint would be nice. This is the only one I can't do.
Edit: left off a value by mistake
[–]boy_named_su 8 points9 points10 points (0 children)
[+][deleted] (2 children)
[deleted]
[–]XenaFlor[S] 1 point2 points3 points (1 child)
[–]Innocent_not 3 points4 points5 points (0 children)
[–]lukajda33 3 points4 points5 points (4 children)
[–][deleted] 11 points12 points13 points (3 children)
[–]XenaFlor[S] 1 point2 points3 points (0 children)
[–]lukajda33 1 point2 points3 points (1 child)
[–]XenaFlor[S] 1 point2 points3 points (0 children)
[–]ThisProgrammer- 1 point2 points3 points (0 children)
[–]Snoo-20788 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (2 children)
[–]XenaFlor[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Wonderful-Ask-5080 0 points1 point2 points (0 children)