IPython as mention or ptpython(as i used for many years now).
Can paste in almost all code into ptpython and it works,and can continue to test.
For Windows in make much better in use cmder in combo with ptpython.
ptpython can also go in change code that has been paste and look at run code that has been paste in before(
Also remember the
Can paste in almost all code into ptpython and it works,and can continue to test.
For Windows in make much better in use cmder in combo with ptpython.
ptpython can also go in change code that has been paste and look at run code that has been paste in before(
F3
).class Game: def __init__ (self, title, year, price): self.title = title self.year = year self.price = price def __str__(self): return f'{self.title}, {self.year}, {self.price}' def __repr__(self): return f'Game({self.title}, {self.year}, {self.price})' g1 = Game("FIFA", 2008, "€50") print(g1)
Also remember the
-i
command this work for all interactive shell.python --help ..... -i : inspect interactively after running script; forces a prompt even if stdin does not appear to be a terminal; also PYTHONINSPECT=x