1. Does this global variable assignment work for the next_in_sequence function also ? 2. Also about previous function does it work for strings as well?
1. anything global will be called once , it works but called once and same value would be there forever until you try amend the assignment 2. yes, previous meaning anything from the previous record
helpful in interview preparation !
could you please upload some guidelines and code for JSON file processing
1. Does this global variable assignment work for the next_in_sequence function also ?
2. Also about previous function does it work for strings as well?
1. anything global will be called once , it works but called once and same value would be there forever until you try amend the assignment
2. yes, previous meaning anything from the previous record
@@datapundit thank you
For the first record how does it got rank 2, it doesn't have any previous records right? It should have rank 1 right?
D1 has an employee E3 who got 895 i.e. the highest salary so that one shall get rank 1
@@datapundit we are scanning based on only salary?