Python Basic Certificate Hackerrank Solution For List