Phyton 3 and C++ Solved Exercise-for myself