r/pythonhelp • u/[deleted] • Dec 02 '22
question about how to store a solution
I'm currently in a class for python and for our final we have to make a program that uses the things we've learned. But how I want to use dict/pickle we haven't been taught or isn't in the book we use, and I cant find the answer to my question online.
My program is a menu based calculator and I want to store my solutions to look up later via a list, Do I just store the object of the equation and it brings the result with it, or is there a way to just store what it creates as a value.
As a base I have you input say an x value and a y value they become self.x/y respectfully, do I save that or how do I save just the end result from something like self.x ** self.y.
1
u/SDG2008 Dec 03 '22
You mean like make Jason file?
1
Dec 03 '22
I'm sorry but I dont know what that is, hes requires us to use pickle for our dictionary work.
1
u/Goobyalus Dec 03 '22
Can you clarify what you want to store, with examples?