lwgray / think

MIT License
0 stars 1 forks source link

Add (>=, <=, !=) operator support #19

Closed lwgray closed 1 week ago

lwgray commented 1 week ago

Description

This PR adds support for the >=, <=, != operators to ThinkPy, enhancing our comparison capabilities particularly for educational examples like grade calculations.

Changes Made

Example

Before:

# Workaround for >= 90
if score > 89 then
    grade = "A"

After:

# Direct and intuitive
if score >= 90 then
    grade = "A"

Testing

Need to add tests for:

NEED to add Documentation

Related Issue

Closes #18

Checklist

Screenshots

[If relevant, add screenshots showing the operator in use]

Notes for Reviewers

Please pay special attention to:

Breaking Changes

None. This is a backward-compatible enhancement.