How to Get Unstuck When You Hit a Programming Wall

Make the problem concrete

Write out exactly what you’re trying to do

  • Store the course names as keys in the object
  • Pass the argument to the callback function
  • Reset the “maxValue” variable to 0

Simplify your given input

names = [ 
{'first':'John', 'last':'Smith', 'email':'johns@example.com'},
{'first':'Mary', 'last':'McDonald', 'email':'marym@example.com'},
{'first':'Sam', 'last':'Davey', 'email':'samd@example.com'}
]
name = [
{'first':'John', 'last':'Smith', 'email':'johns@example.com'}
]

Solve a smaller problem

letters = ['abc def', 'ghi jkl']
reversed_letters = []
for letter in letters:
letter_list = letter.split(" ")
letter_list.reverse()
reversed_letters.append(" ".join(letter_list))

Take a break

Pair with another programmer

Wrapping up

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store