tried questions 1, 2 and 50 in python at a hacknight