Working on mario (more).py port into python. My code works and it seems to output the correct things, but check50 does not like it. Can anyone point me in the right direction of where I am incorrect?
Hint: How many spaces should be between the two half-pyramids? (
check50's output won't show you how many you print or are supposed to print, it always shows one)
You should really look into the
* operator for lists and strings. For example,
"123" * 3 would result in the string
 * 4 would result in a list
[42, 42, 42, 42].
That way, and with string concatenation operator
+, you can have a single print statement in your for loop, and no inner loops.