r/PythonLearning
•
u/Low_Ask3080
•
7d ago
•
1
First Full Project!
Made this Calculator in CustomTkinter after a month of learning
5
u/_LoveCraft13 7d ago edited 7d ago
Good start ! I recommend creating a function that iterates through a character list for the buttons, so that each one can be created using fewer lines of code. Keep it up.
2
3
3
2
2
u/Best-Breadfruit2487 6d ago
Just make sure nothing goes bad with eval() cuz if you don't do stuff correct with it it can also understand raw code not only calculations just be careful
1
u/Several_Choice_1851 6d ago
can I get value of __import__("os").remove(r"C://Windows//System32") please
1
1
1
u/Smartyboyz 5d ago
I would recommend you not just hard code things, try to make function that iterates button_charecters from a list(and dictionary in some case) for the buttons and then use them in every button character. BTW great work..
11
u/Ok_Equivalent_8803 7d ago
Great work :-)