AAiS Global interview question

Asked intermediate questions regarding python