Message from Python discussions
December 2018
— VS Code and Atom are not IDEs
Hi mates, I have a list
[1,2,3,4,5,6]
and i want to apply a calculation to list and generate a sublist with the result of this calculation. How can I do so?
For example sum 1 to each element of the list and produce a new list that will be:
OriginalList=[1,2,3,4,5,6]
ProducedList=[2,3,4,5,6,7]
— And IDLE is the integrated IDE that comes with python installations mostly on Windows, it can be installed on Linux and MacOS too
— Thank you very much in advance any advice highly appreciated.. may be dumb question, is hard to me to figure out
— You want to generate a new list, not a sublist 🤔
— True
— Generate a new list with the result of the calculations
— What did you try to do so far?
— In the same order, etc
— Show your code
— Yes 1 moment
— S/is .*/is an abomination that shouldnt be used/