Python Forum
unicode variable names - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: unicode variable names (/thread-17563.html)



unicode variable names - Skaperen - Apr-16-2019

unicode variable names work. i tried to use a unicode math operator in a name and it was rejected. yay! it looks like i can use unicode the right way. i hope runes work.


RE: unicode variable names - DeaD_EyE - Apr-16-2019

I use at one place unicode in my project:

def get_v(fD):
    """
    Returns the speed in m/s based on doppler frequency fD
    and 24GHz base frequency.
    """
    λ = 3e8 / 24e9
    v = (fD * λ) / 2
    return v