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


Messages In This Thread
Why are my parameter names greyed out? - by 357mag - Jul-06-2019, 07:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [ERROR] ParamValidationError: Parameter validation failed: Invalid type for parameter gdbengo 3 17,469 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