Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pushpit/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def main():
status = "even" if is_even(num) else "odd"
print(f"{num} is {status}")

print("This is a simple Python program demonstrating basic concepts.")

if __name__ == "__main__":
Comment on lines +34 to 36
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This top-level print introduces a module import side effect and will run even when pushpit.main is imported (e.g., from tests/other modules). If the intent is to show this message when executing the script, move it into main() or inside the if __name__ == "__main__": block (and avoid duplicating the module docstring).

Suggested change
print("This is a simple Python program demonstrating basic concepts.")
if __name__ == "__main__":
if __name__ == "__main__":
print("This is a simple Python program demonstrating basic concepts.")

Copilot uses AI. Check for mistakes.
main()