Python Forum
Why are my parameter names greyed out? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Why are my parameter names greyed out? (/thread-19611.html)



Why are my parameter names greyed out? - 357mag - Jul-06-2019

I'm experimenting with passing arguments to functions and I noticed that the names I'm using for parameters look greyed out. You probably can't see it here but in my code window the 'y' looks kinda greyed out. I'm using Visual Studio 2019.

def main():
    x = 4
    print("The original value of x is", x)
    number_squared(x)

def number_squared(y):
    result = y * y
    print("The value of x after squaring is", result)

main()

print()



RE: Why are my parameter names greyed out? - ichabod801 - Jul-06-2019

It's just the syntax highlighting settings in Visual Studio. Most programming text editors have them, and have different themes you can choose from. For instance, in my Sublime Text window right now, my parameters show as orange in italics.