8 Answers
+ 13
use linux.
you can use python directly without any instalation what so ever.
tested on debian and ubuntu.
+ 12
file=open("thing.txt","w")
#w=write. also clears text file upon opening. so read beforehand if you want to keep data, then rewrite it.
file.write("hello")
file.close()
file=open("thing.txt","r") #r=read
info=file.read()
file.close()
print(info,"world!")
+ 10
Weird and clumsy. Try Notepad++ instead, it's a lot smarter code-wise.
+ 5
i think it is better to use python IDLE (python 3). it comes with python 3, when you download it.
+ 5
Use Geany on Linux, much like notepadd but with compilers, scribble section, and a console all in one
+ 5
@rain_drop Since input() is actually a string, you could just iterate through it. Later, you can print out a sum of the elements, converted to integers:
a = input()
for i in range(len(a)):
print(i, end=' ')
print(sum(int(i) for i in a))
+ 4
?
+ 3
well i prefer eclipse ide and pydev extension on windows