id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

image_alternative


Given a 2-D arrays, that is a array within an array, Multiply each value less then 100 by 10. Set any value greater than 150 to 0. Subtract 35 from each value greater than or equal to 100, but less than or equal to 150.


image_alternative([[1]]) → [[10]]
image_alternative([[1, 2]]) → [[10, 20]]
image_alternative([[1], [150], [200]]) → [[10], [115], [0]]

...Save, Compile, Run (ctrl-enter)

def image_alternative(arr):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 101 Post-solution available

Copyright Nick Parlante 2017 - privacy