Haven't used Python in a while, but I believe file = open(path, rights/mode) should return a file object. After that the most crude way would be to use file.write(string)
So I need to solve 2^9876543, I did it in Python command line, but I want to export the answer to a .txt file but I'm terrible at coding can anyone show me the code in python on how to export the answer of 2^9876543 to a .txt file?
[IMG]https://i1213.photobucke*****m/albums/cc463/masks1/my_loving_flame_by_mj_magic-d5gkrqk.jpg[/IMG]
"Christian Bible, the Gospel of Mark, chapter five, verse nine. We acknowledge this as an appropriate metaphor. We are Legion, a terminal of the Geth. We will integrate into Normandy."
-Legion
Haven't used Python in a while, but I believe file = open(path, rights/mode) should return a file object. After that the most crude way would be to use file.write(string)
I'm Alen on Steam. RIP Skype Friday nights.
I'm Navi's lover 💖
Dave84311: God I've always wanted to eat crayons, with their vibrant colors. Only if they had taste.
Mr. Lonely: @Alen I like making you wet, it makes me hard.
print ('Running...')
text = open("Answer.txt", "w")
x = 2**9876543
text.write(str(x))
print ('Complete.')
^What he said.
Last edited by Ixxz; 05-05-2012 at 06:46 PM.