Digital Forensics and Incident Response | DFIR
  • Blog
  • Infosec
  • Windows Forensics
  • Mac Forensics
  • Memory Forensics
  • Incident Response
  • Contact

List- Basics

3/16/2018

0 Comments

 
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



0 Comments



Leave a Reply.

    Archives

    April 2020
    September 2019
    August 2019
    July 2019
    June 2019
    April 2019
    February 2019
    March 2018

    Categories

    All
    Aws
    Cloud
    Dfir
    Incident Response
    Linux
    Recon

    RSS Feed