i've faced with some strangeness while executing this sample:
choice = raw_input("your choice: ")
print len(choice)
when i run this sample in my eclipse console with CPython and print
Yes, i have this output
4 #trailing \t is the fourth element
but when i use command line method
python sample.py
i have the correct length = 3
i'm curious now, can anyone explain that?
choice = raw_input("your choice: ")
print len(choice)
when i run this sample in my eclipse console with CPython and print
Yes, i have this output
4 #trailing \t is the fourth element
but when i use command line method
python sample.py
i have the correct length = 3
i'm curious now, can anyone explain that?
Comment