def main():
    out=open("tennis.txt","a")  # "w" write   .  "a" append اضافه
    out.write("welcom in python file\n mohamed\n name:moustafa")
    out.close()
    readfile=open("tennis.txt","r")  # to read file
    for line in readfile:
        print(line)




















if __name__ == '__main__': main()

adbc310ee2c335adf6c1aabd8506e722a4de13e9
<mask token>

def main():
    out = open('tennis.txt', 'a')
    out.write('welcom in python file\n mohamed\n name:moustafa')
    out.close()
    readfile = open('tennis.txt', 'r')
    for line in readfile:
        print(line)


<mask token>

def main():
    out = open('tennis.txt', 'a')
    out.write('welcom in python file\n mohamed\n name:moustafa')
    out.close()
    readfile = open('tennis.txt', 'r')
    for line in readfile:
        print(line)


if __name__ == '__main__':
    main()

def main():
    out=open("tennis.txt","a")  # "w" write   .  "a" append اضافه
    out.write("welcom in python file\n mohamed\n name:moustafa")
    out.close()
    readfile=open("tennis.txt","r")  # to read file
    for line in readfile:
        print(line)




















if __name__ == '__main__': main()
