# Name:
# Date:

# proj01: A Simple Program
# This program asks the user for his/her name and age.
# Then, it prints a sentence that says when the user will turn 100.

# If you complete extensions, describe your extensions here!

#total = 2017

#user_input1 = raw_input("Enter your name: ")
#user_input2 = int(raw_input("Enter your age: "))
#user_input3 = "You will turn 100 in the year "
#print user_input2
#user_input4 = raw_input("If you have had a birthday this year, press 0. If not, press 1")

#if




#while 100 > user_input2:
#for year in range(100 - user_input2):

    #total = total + 1
    #user_input2 += 1
    #print total

#print user_input3
#print int(total)

#empty list
myList = [2, 44, "cat", 123, 464, "dog"]

print myList

length = len(myList)

print "length of myList = ",length

print "First thing in myList = ", myList [0]
print "Second thing in myList = ", myList [1]
print "Third thing in myList = ", myList [2]

print myList [2:5]

for stuff in myList:
    print stuff

myString = "Hello World!"
print myString [0]
print myString [1:4]

print myString.lower()

stringList = []
for letter in myString:
    stringList.append(letter)

print stringList
# Name:
# Date:

# proj01: A Simple Program
# This program asks the user for his/her name and age.
# Then, it prints a sentence that says when the user will turn 100.

# If you complete extensions, describe your extensions here!

#total = 2017

#user_input1 = raw_input("Enter your name: ")
#user_input2 = int(raw_input("Enter your age: "))
#user_input3 = "You will turn 100 in the year "
#print user_input2
#user_input4 = raw_input("If you have had a birthday this year, press 0. If not, press 1")

#if




#while 100 > user_input2:
#for year in range(100 - user_input2):

    #total = total + 1
    #user_input2 += 1
    #print total

#print user_input3
#print int(total)

#empty list
myList = [2, 44, "cat", 123, 464, "dog"]

print myList

length = len(myList)

print "length of myList = ",length

print "First thing in myList = ", myList [0]
print "Second thing in myList = ", myList [1]
print "Third thing in myList = ", myList [2]

print myList [2:5]

for stuff in myList:
    print stuff

myString = "Hello World!"
print myString [0]
print myString [1:4]

print myString.lower()

stringList = []
for letter in myString:
    stringList.append(letter)

print stringList
# Name: # Date: # proj01: A Simple Program # This program asks the user for his/her name and age. # Then, it prints a sentence that says when the user will turn 100. # If you complete extensions, describe your extensions here! #total = 2017 #user_input1 = raw_input("Enter your name: ") #user_input2 = int(raw_input("Enter your age: ")) #user_input3 = "You will turn 100 in the year " #print user_input2 #user_input4 = raw_input("If you have had a birthday this year, press 0. If not, press 1") #if #while 100 > user_input2: #for year in range(100 - user_input2): #total = total + 1 #user_input2 += 1 #print total #print user_input3 #print int(total) #empty list