Menu
Incident Response Forensics
student_number = []
student_name ["mark","rob","Jessica"] Index is used to access elements in a list for example: student_name[0] == "Mark" student_name[1] == "rob" student_name[-1]="Jessica" Replacing an element in list Student_name[0] ="James" student_name ["James","rob","Jessica"] Add element to a list: student_name.append("mark") student_name ["James","rob","Jessica","mark"] Checking element in list: "mark" in student_name == True Comments are closed.
|
Archives
April 2020
Categories |