venture of iit bombay vjti alumni the write(method the write(method writes any string to an open file it is important to note that python strings can have binary data and not just text the write(method does not add newline character ('\ 'to the end of the string syntax fileobject write(string)herepassed parameter is the content to be written into the opened file example #!/usr/bin/python open file fo open("foo txt""wb"fo write"python is great language \nyeah its great!!\ ")