Misschien was dat antwoord iets te kort. Ik bedoelde iig:

if ("b" in t2):

ipv

if ("b" in t2)


groet,

Op 10-08-07 heeft Guyon Morée<[EMAIL PROTECTED]> het volgende geschreven:
> Je mist een dubbele-punt achter het if-statement
> groetjes,
> groetjes,
>
> Op 10-08-07 heeft frankje<[EMAIL PROTECTED]> het volgende geschreven:
> >
> > Hallo,
> >
> > Ik ben net begonnen met een cursus python op www.developer.com. Hier staat
> > echter een listing in waarop ik een foutcode krijg (zie hieronder):
> >
> > t1 = "a",
> > t2 = t1*2
> > if ("b" in t2)
> >   print "OK"
> > if ("a" in t2):
> >   print "t2"
> >   print t2
> >   print "length = ",len(t2)
> >
> >
> > De foutcode die ik krijg is:
> >
> > [EMAIL PROTECTED]:~/python$ python tuple05.py
> >   File "tuple05.py", line 10
> >     if ("b" in t2)
> >                  ^
> > SyntaxError: invalid syntax
> > [EMAIL PROTECTED]:~/python$
> >
> > Weet iemand wat er hier fout is?
> >
> >
> > Bij voorbaat dank, Frank
> >
> > --
> > View this message in context: 
> > http://www.nabble.com/if-optie-tf4247363.html#a12087423
> > Sent from the Python - python-nl mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > Python-nl mailing list
> > Python-nl@python.org
> > http://mail.python.org/mailman/listinfo/python-nl
> >
>
>
> --
> Guyon Morée
> [EMAIL PROTECTED]
> http://gumuz.looze.net
>


-- 
Guyon Morée
[EMAIL PROTECTED]
http://gumuz.looze.net
_______________________________________________
Python-nl mailing list
Python-nl@python.org
http://mail.python.org/mailman/listinfo/python-nl

Antwoord per e-mail aan