Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
Disabled
×
Change Orientation
thislist = ["apple", "banana", "cherry", "orange", "kiwi", "melon", "mango"] print(thislist[:4]) #This will return the items from index 0 to index 4. #Remember that index 0 is the first item, and index 4 is the fifth item #Remember that the item in index 4 is NOT included
['apple', 'banana', 'cherry', 'orange']
×
Report a Problem:
Your E-mail:
Page address:
Description:
Disabled