forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed as not planned
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Testing #25224
python venv with version 3.12.3
have the code below, highlight if x < 0:
shift+enter gave me indentation error
def say_hi(name):
print(f"Hi, {name}!")
print("This is a simple greeting function.")
if __name__ == "__main__":
say_hi("World")
def g(x):
"""This function returns the square of the input."""
if x < 0:
raise ValueError("Input must be non-negative")
return x * x

Metadata
Metadata
Assignees
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team