0

I want to use Unicode variable names for writing some math code in Python.

I tried the following

# -*- coding: utf-8 -*-
α  = 1
β = 3
print α + β 

But I get the error

[~/Desktop]$ python fun.py
  File "fun.py", line 2
    α  = 1
    ^
SyntaxError: invalid syntax

How can I fix this?

smilingbuddha
  • 14,334
  • 33
  • 112
  • 189

1 Answers1

-2

I don't believe you can.. Special characters (with the exception of the underscore and the dollar sign) aren't allowed in variables