Update Problem8.py

Replaced the multi-append function with a map function in one instruction...