answers for https://www.hackerrank.com/domains/miscellaneous/python-tutorials