print using fptr.write() in python code example Example 1: print python 3 a = 3 print(a) Example 2: python print print("MOHAMMAD SHAWAKHA")