Hi Aaket;
Explanation of for loop
For loops are used for sequential traversal. For example: traversing a list or string or array etc. In Python, there is no C style for loop, i.e., for (i=0; i<n; i++). There is “for in” loop which is similar to for each loop(enhanced loop) in other languages.
->here first we take input() a string and using split() we generate a list of attributes entered.
we are creating a list of strings using input().split()
->after that we are iterating over that list using for in loop using “no” as iterator.
->using no we are getting strings and using type casting converting string into integer