This made my day! Thank you for your support and encouragement. Appreciate what you do for your community and please let me know if I can be of any help. More than happy to lend a hand🙂
MARKS, CLASS, NAME, ID = input().split() I did not know you could do this. It seems it's automatically assigning a variable to each item in the list that split() returns. Very cool.
The order of the column names changes in the input. For example, test case 0 has: ID MARKS NAME CLASS But test case 1 has: MARKS CLASS NAME ID How does the code handle that?
I want to thank you for all of your great videos. I am teaching a basic Python class in my local community and your videos are very useful. Great Job.
This made my day! Thank you for your support and encouragement. Appreciate what you do for your community and please let me know if I can be of any help. More than happy to lend a hand🙂
MARKS, CLASS, NAME, ID = input().split()
I did not know you could do this. It seems it's automatically assigning a variable to each item in the list that split() returns. Very cool.
Thanks , you're the best !!
Thanks for the nice words, happy to help🙂
Could you please explain ...when it takes input how does it stays in the order ???? Very confusing?
Great, video!
Glad you enjoyed it🙂
Could the container be created outside the loop?
Could you explain the part where you took input off all the fields in the for loop...how does it stay in the order corresponding to the user's order??
have you find the solution to it
The order of the column names changes in the input. For example, test case 0 has:
ID MARKS NAME CLASS
But test case 1 has:
MARKS CLASS NAME ID
How does the code handle that?