Thanks! So a file will only take a numeric as a string? Lesson learned. Again, thanks. Ken Amit Sethi wrote: > It is as the Error says a type error , the function takes a string and > u are passing an int > if you put > file.write(str(number)) you will not get error .. > >