[python-nl] if optie

frankje spruit_frank at hotmail.com
Fri Aug 10 10:36:09 CEST 2007


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:

frank at ubuntu:~/python$ python tuple05.py
  File "tuple05.py", line 10
    if ("b" in t2)
                 ^
SyntaxError: invalid syntax
frank at ubuntu:~/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.



More information about the Python-nl mailing list