- Notifications
You must be signed in to change notification settings - Fork2.7k
Closed
Labels
Milestone
Description
The example worked in interpreter but not when I write in a.py file.
from __future__importbarry_as_FLUFLimportsysprint(sys.version)"Ruby"!="Python"#This is OK
from __future__importbarry_as_FLUFLimportsysprint(sys.version)"Ruby"<>"Python"#But this raise a exception
output 1:
3.6.5|Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]
output 2:
File"test.py", line 4"Ruby"<>"Python" ^SyntaxError: invalid syntax