Python Forum

Full Version: Adding adjacent parts of a list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey all!

So I am trying to get a program that adds adjacent list values together and then finds the greatest amongst them...
--list_one = [ 3, 6, 2, 8, 3 ]

So, the next step should evaluate to something like this :
--9 8 10 11

and then from there select the greatest value so ultimately:
--11

I hope this makes sense to everyone... I spent time trying to figure it out ... but then I realize I know very little about the functions and powers of python... So I need to keep submitting and putting a pin in the ones that are most helpful.Thank you very much like always!!

# LONG LIVE PYTHON
What have you tried, and how exactly is it failing?