T-S-Brown
9/16/2017 - 4:42 PM

Python Fundamentals

Provides a brief overview of some funtamental concepts / features of python

# Using the index methods return the index of an element from a list

x = [1,2,3,4,5]

x.index(3)

# This returns a 2!


# String Methods
vector = ["one", "two", "three", "four", "five"]

vector.capitalize()

# Other methods of interest
vector.replace()
vector.append()

# Functions of Interest
type()