open file and print contents python code example Example: python create file f= open("guru99.txt","w+")