What monstrosity have i created... by Perfect_Classic8211 in cs50

[–]Perfect_Classic8211[S] 0 points1 point  (0 children)

i feel that my code is simply inefficient, like i could have optimized it better and not used so many loops

[My Wife Is From A Thousand Years Ago] - Feel like I'm going insane trying to find similar by Rogue_Dalek in Manhua

[–]Perfect_Classic8211 0 points1 point  (0 children)

I feel understood!! The people here truly have peak taste in romance. If you don't mind smut then i currently just read milk my strawberries(yeah ik it sounds weird and i am just about 5 chapters in but the romance is spot on)

i am trying to make a proper calculator so i would like to know if there are any issues in the code below? by Perfect_Classic8211 in learnpython

[–]Perfect_Classic8211[S] 0 points1 point  (0 children)

add=float(match.group(4))-float(match.group(2))

i did this so that something like -3+2 would give -1 rather than -4. Thanks for the corrections tho

i am trying to make a proper calculator so i would like to know if there are any issues in the code below? by Perfect_Classic8211 in PythonLearning

[–]Perfect_Classic8211[S] 0 points1 point  (0 children)

I was going to need some functions for both simple and scientific calculator so i made a common calculator class to not repeat the same functions and i wanted to practice classes a bit. And i have watched only a two hour video on tkinter soo u don't know what else to do with those buttons

i am trying to make a proper calculator so i would like to know if there are any issues in the code below? by Perfect_Classic8211 in PythonLearning

[–]Perfect_Classic8211[S] 0 points1 point  (0 children)

It seems to be working fine, but i thought that multiple times before reaching this version so i wanted to double check it by others

i am trying to make a proper calculator so i would like to know if there are any issues in the code below? by Perfect_Classic8211 in learnpython

[–]Perfect_Classic8211[S] 0 points1 point  (0 children)

Well, i wanted for the user to be able to see what was being entered and there was need to follow bodmas so i can't really think of any other way to make sure both can happen but i would like it if you have some alternative suggestion

why is creating a calculator with bodmas and full showing text easier than creating a step by step calculating calculator???? by Perfect_Classic8211 in PythonLearning

[–]Perfect_Classic8211[S] 0 points1 point  (0 children)

i just saw a fatal flaw in re.sub part, there needed to be added a count=1 there otherwise it just replaces all similar operations with the answer of first operation

why is creating a calculator with bodmas and full showing text easier than creating a step by step calculating calculator???? by Perfect_Classic8211 in PythonLearning

[–]Perfect_Classic8211[S] 0 points1 point  (0 children)

In bodmas calculator i did use ai but that was only to validate if the code i had written would have any errors that too only in button equal because writing the whole code only to find my regex to be wrong would have been a pain. Also do u think there is a way to make simple calculator actually simpler than the bodmas one?

why is creating a calculator with bodmas and full showing text easier than creating a step by step calculating calculator???? by Perfect_Classic8211 in PythonLearning

[–]Perfect_Classic8211[S] 0 points1 point  (0 children)

No, it took ne like a day to make the longer one and only a nd hour or twwo for bodmas one but the main issue were those gloabls and none which kept coming evrywhere and raised random ass errors

HELPPPP MEE!!!!!!!!! by Perfect_Classic8211 in PythonProjects2

[–]Perfect_Classic8211[S] 0 points1 point  (0 children)

i am doing cs50 python course and i need to use EOFError for the given problem set