Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: invalid character in identifier #8

Open
wannaphong opened this issue May 23, 2016 · 0 comments
Open

SyntaxError: invalid character in identifier #8

wannaphong opened this issue May 23, 2016 · 0 comments

Comments

@wannaphong
Copy link

wannaphong commented May 23, 2016

I using Python 3.5.1 in ubuntu. I installed version of pseudo-python.
a.py

data1 = int(input("Num : "))
max = 12
min = 1
while min<=max:
    print("%d * %d = %d" % (data1,min,data1*min))
    min+=1
$ pseudo-python a.py csharp
Traceback (most recent call last):
  File "/usr/local/bin/pseudo-python", line 9, in <module>
    load_entry_point('pseudo-python==0.2.28', 'console_scripts', 'pseudo-python')()
  File "/usr/local/lib/python3.5/dist-packages/pseudo_python/main.py", line 60, in main
    node = pseudo_python.translate(source)
  File "/usr/local/lib/python3.5/dist-packages/pseudo_python/__init__.py", line 6, in translate
    return pseudo_python.ast_translator.ASTTranslator(pseudo_python.parser.parse(source), source).translate()
  File "/usr/local/lib/python3.5/dist-packages/pseudo_python/parser.py", line 5, in parse
    x = ast.parse(source)
  File "/usr/lib/python3.5/ast.py", line 35, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 1
    data1 = int(input("Num : "))
         ^
SyntaxError: invalid character in identifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant