I want to iterate through the elements in the array and double the value of the number whenever an element equals a number. Also need to find the maximum number.
Here is my code which is incorrect.
for i in arr:
Any help will be greatly appreciated.