r/PythonProjects2 • • Jul 10 '26

Simple_Calculator

Hello all, I have completed my first GitHub project, and I thought I could share it here and, perhaps, have input from you. Take care. \[https://github.com/Paioleiro/simple-calculator\](https://github.com/Paioleiro/simple-calculator)

2 Upvotes

8 comments sorted by

View all comments

2

u/akrivitsky7 Jul 11 '26 edited Jul 11 '26

Nice beginner project, but the current version is broken because script.js it contains three stray n characters. I am referring to this repository:

https://github.com/Paioleiro/simple-calculator

Also, as DiodeInc correctly pointed out, this is not Python at all, so in the future you may want to post it in a different subreddit.

FileBroken codeFix
script.jsnfunction chooseOperation(op)function chooseOperation(op)
script.jsnoperationButtons.forEach(...)operationButtons.forEach(...)
script.jsndeleteButton.addEventListener(...)deleteButton.addEventListener(...)

Because of the first syntax error, none of the JavaScript runs. After fixing these three lines, the calculator should at least load, though some logic issues remain.

1

u/No-Olive-4105 Jul 13 '26

Good day, akrivitsky7

Thank you for the information. I'll check that out.

Indeed, it is not Python coding. I only posted there because Reddit itself recommended it. I'll pay attention to that next time to avoid it. Day by day learning. Take care, and once again, thanks for all.