![]() |
Learning Python and I need help
Hey,
So I am taking a basic Python class and one of my assignments was to create a very simple calculator.. Btw, I am using Python 2.3 (As that's what the teacher wants us to use because of livewires) It's very simple, but I am experiencing an error that I don't know how to fix (which is probably too simple for you guys to fix haha).. So I am getting this error on IDLE: Quote:
Code:
import sys |
Re: Learning Python and I need help
Okay fixed the first error:
But I am getting another error if I choose "No" when it asks me to do another calculation: Quote:
Code:
import sys |
Re: Learning Python and I need help
In the retry() method,
Code:
Calculator.calc() Code:
self.calc() |
Re: Learning Python and I need help
Thanks marxian!
Ah good stuff! I changed the code quite a bit and now it's working like how I want it! :) Code:
import sys |
Re: Learning Python and I need help
EDITED: Nvm, I solved the new issue by myself! Props to me! lol
|
Re: Learning Python and I need help
Thats great.
|
Re: Learning Python and I need help
Great bandora. Python rules. Why not adjust it and add a gui and release it for your favorite device? Or are you unly looking to learn python syntax?
|
Re: Learning Python and I need help
Well I am taking a Python class, so all this is pretty much just for learning purposes.. And the edited post was about another code.. I am making a simple python game using pygame and livewires (it's my final), so far so good lol...
I absolutely love TMO on this matter! Like it's pretty much guaranteed you're gonna get helped developing anything! Thanks again! :) |
All times are GMT. The time now is 04:19. |
vBulletin® Version 3.8.8