if statement, with function inside it: if (t = Test()) == True:
ptmcg at austin.rr.com
Fri Apr 24 15:24:42 CEST 2009
On Apr 24, 5:00 am, GC-Martijn <gcmart... at gmail.com> wrote:
> I'm trying to do a if statement with a function inside it.
> I want to use that variable inside that if loop , without defining it.
> def Test():
> return 'Vla'
> I searching something like this:
> if (t = Test()) == 'Vla':
> print t # Vla
Here is a thread from 3 weeks ago on this very topic, with a couple of
More information about the Python-list