Python Forum

Full Version: unicode variable names
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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