Skip to content

indentation error #25231

@eleanorjboyd

Description

@eleanorjboyd

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
Image

Metadata

Metadata

Assignees

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions