Python Forum
Why are my parameter names greyed out?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why are my parameter names greyed out?
#1
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()
Reply
#2
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.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [ERROR] ParamValidationError: Parameter validation failed: Invalid type for parameter gdbengo 3 10,644 Dec-26-2022, 08:48 AM
Last Post: ibreeden

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020