I\'m a beginner trying to achieve the below in my python script: Can anyone help me on this? I\'m stuck at step2.