[Tutor] Program to check Python 2 syntaxes incompatible to Python 3?

2017-06-28 Thread STF
Hi, After reading some articles about Python 2 vs Python 3 issues and web pages like: https://docs.python.org/3/whatsnew/3.0.html https://wiki.python.org/moin/Python2orPython3 I'm wondering if there's any program/tool to list out incompatible syntaxes in a Python 2 source file. I know the 2to3 t

Re: [Tutor] Noob: nested if-clauses

2016-01-29 Thread STF
On 25 January 2016 at 21:46, Alan Gauld wrote: > On 25/01/16 15:52, STF wrote: > > > It's a total fluke. I put the indentation like this to *visually* help > > myself understand what I was going to write. > > That's one of the good things about Python, if it lo

Re: [Tutor] Noob: nested if-clauses

2016-01-25 Thread STF
Thanks to Joel and Alan for replying. On 24 January 2016 at 22:08, Alan Gauld wrote: > On 24/01/16 19:42, STF wrote: > > > Let's see the following instructions: > > > > if condition_A: > > instruction_1 > > instruction_2 > &

[Tutor] Noob: nested if-clauses

2016-01-24 Thread STF
Hi, I've just started to learn Python thru some online courses and websites. They just teach very basic things. I've got some questions about "if" that I'm unable to find the answers. So let me ask the newbie questions here. Let's see the following instructions: if condition_A: ins