[Tutor] Error writing to file...(SOLVED)

Ken G. beachkid at insightbb.com
Fri Dec 25 21:33:58 CET 2009


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 ..
>
>


More information about the Tutor mailing list