odd mountain is a list of odd numbers going up from 1 and then back to 1. e.g. odd_mountain of size 5 is [1,3,5,3,1] odd_mountain of size 4 is [1,3,3,1] Hint: use the list functions and a builtin function.
Can anyone help me in this? all my tries are going waste. I thought of doing it using range but getting trouble with even sizes! Please help!