Quest Global interview question

Basic python and Machine Learning questions