Problem With Python 3.5 solution


#1

My python 3.5 solution for this problem only works if I return a list with a string “1” in it for the numRows == 1 case.

What I was trying before:
if(numRows == 1):
return [1]

What ended up working:
if(numRows == 1):
return[“1”]

I didn’t change anything else, with my code, second one works, first one doesn’t. If anyone else is really struggling with a runtime error for the python 3.5 solution and can’t figure out what is wrong, give this a try.