0
Simple input and output problem
take a look with this script oke = input("testing: ") if oke == ferrari: print "ferrari car" else: print "not ferrari car" if im type ferrari its ouptut will "ferrari car".but why when im type something else the output is not "not ferrari car" but its going to error? im also try if oke not == ferrari.the same error output
5 odpowiedzi
+ 3
change oke == ferrari to-> oke == "ferrari"
+ 1
still error.i try it at linux with python
+ 1
Which version of Python use you?
before Version 3:
use -> print "ferrari car"
Test:
>>> testing: "ferrari"
>>> ferrari car
Version 3:
use -> print( "ferrari car")
Test:
>>> testing: ferrari
>>> ferrari car
0
wow so its diffrent.thanx a lot.u r genius.keep helping constantin!
0
I need XP please