Q:

I keep getting a type error and don't know why

def printWord(a,b):
    a= raw_input ("What would you like me to say?")
    b= raw_input ("How many times would you like me to say it?")
    int(float(b))
    for i in range(b):
        print a

this code keeps giving me this error:
line 10, in printWord
  for i in range(b):
TypeError: range() integer end argument expected, got str.

A:

You had the right idea with this line:
int(float(b))

but that doesn't change b in-place. You have to keep the result. Use this:
b = int(float(b))

