• Python has gained popularity in software development as well as software testing services. It resolved the issue with development of complex scientific and numeric applications.

    Positive and negative numbers utilized for accessing arrays and list of numbers is Index. The index accessing end of the list counting towards backwards is called Negative index.

    The index value -1 in negative returns last element, -2 gives second last  and it starts from the end of array i.e., first element of negative indexing (-1) is last element of array.

    Negative indexing is only supported by Python language.


    arr = [10, 15, 20, 25, 30]

    print (arr[-1])

    print (arr[-2])





    The Best Software Testing Services Company - QASource
    Partner with the leading software testing company - QASource, and accomplish all your software testing services goals within strict deadlines and bud…
This reply was deleted.
    results->result as $result) { ?>
  1. jobtitle;?>
    company;?>(formattedRelativeTime;?>)city;?>, state;?>
    Welcome to Mobile QA Zone, a Next Generation Software Testing Community.Invite your friends to join this community.Write to us to become a featured member.