# Find and Replace
# In this string: words = "It's thanksgiving day. It's my birthday,too!" print the position of the first instance of the word "day". Then create a new string where the word "day" is replaced with the word "month".

# Min and Max
# Print the min and max values in a list like this one: x = [2,54,-2,7,12,98]. Your code should work for any list.

# First and Last
# Print the first and last values in a list like this one: x = ["hello",2,54,-2,7,12,98,"world"]. Now create a new list containing only the first and last values in the original list. Your code should work for any list.

# New List
# Start with a list like this one: x = [19,2,54,-2,7,12,98,32,10,-3,6]. Sort your list first. Then, split your list in half. Push the list created from the first half to position 0 of the list created from the second half. The output should be: [[-3, -2, 2, 6, 7], 10, 12, 19, 32, 54, 98]. Stick with it, this one is tough!

words = "It's thanksgiving day.  It's my birthday, too!"
print words.find("day")

print words.replace("day", "month")

x = [2,54,-2,7,12,98]
max = 0
min = 0
for m in x:
    if max < m:
        max = m
    if min > m:
        min = m
print max, min

y = ["hello",2,54,-2,7,12,98,"world"]
first = y[0]
last = y[len(y)-1]
print first, last
newlist = []
newlist.append(first)
newlist.append(last)
print newlist

z = [19,2,54,-2,7,12,98,32,10,-3,6]
z.sort()
print z
first = z[:len(z)/2]
second = z[len(z)/2:]
print first, second
second.insert(0, first)
print second
    
    
