+ 5

How is programming Python with notepad?

Python programming.

23rd Apr 2017, 6:22 AM
José Gabriel Macklaud
José Gabriel Macklaud - avatar
8 Answers
+ 13
use linux. you can use python directly without any instalation what so ever. tested on debian and ubuntu.
23rd Apr 2017, 7:39 AM
Agus Mei
Agus Mei - avatar
+ 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!")
23rd Apr 2017, 6:57 AM
Ahri Fox
Ahri Fox - avatar
+ 10
Weird and clumsy. Try Notepad++ instead, it's a lot smarter code-wise.
23rd Apr 2017, 6:56 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 5
i think it is better to use python IDLE (python 3). it comes with python 3, when you download it.
23rd Apr 2017, 7:31 AM
Benedek Måté Tóth
Benedek Måté Tóth - avatar
+ 5
Use Geany on Linux, much like notepadd but with compilers, scribble section, and a console all in one
23rd Apr 2017, 7:57 AM
Rich Korba
Rich Korba - avatar
+ 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))
23rd Apr 2017, 4:05 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 4
?
23rd Apr 2017, 6:22 AM
José Gabriel Macklaud
José Gabriel Macklaud - avatar
+ 3
well i prefer eclipse ide and pydev extension on windows
23rd Apr 2017, 1:44 PM
Burak Usluer
Burak Usluer - avatar