Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python debug suddenly got bad
Post: RE: Python debug suddenly got bad

(Sep-03-2022, 01:15 AM)snippsat Wrote: PyCharm Debugger hides variable values by default OMG thank you so very much. I tried this before, but it didn't work, I now saw I just had to debug, I thought...
ben1122 General Coding Help 3 1,112 Sep-03-2022, 06:20 AM
    Thread: Python debug suddenly got bad
Post: Python debug suddenly got bad

Debug Suddenly when I debug, in order to see values, I must click Show value. but it wasnt like that 10min ago.. How do I change it back? please help.
ben1122 General Coding Help 3 1,112 Sep-02-2022, 08:40 PM
    Thread: Python code keeps duplicating information - OOP ( Could be related to shallow copy? )
Post: Python code keeps duplicating information - OOP ( ...

never mind, asked a friend.
ben1122 Homework 1 1,223 Jun-04-2022, 10:34 AM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

(Oct-01-2021, 07:44 PM)deanhystad Wrote: When the PEP talks about multiple statements on one line it means code like this: squares = []; cubes = [] for x in range(10): squares.append(x**2); cubes.ap...
ben1122 Homework 31 8,190 Oct-02-2021, 01:03 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

(Oct-01-2021, 06:24 PM)Yoriz Wrote: Good luck, if your teacher has any questions about your code you could just send them here. Oh I dont have to send him these, he doesnt really check it or somethi...
ben1122 Homework 31 8,190 Oct-01-2021, 07:18 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

Uhh, of course I could make it that way, but how is it any different? its just basically shorter, but same efficiency and less understandable, I remember that I read PEP 8, its not exactly what you di...
ben1122 Homework 31 8,190 Oct-01-2021, 06:22 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

(Oct-01-2021, 01:15 PM)deanhystad Wrote: Here is a hint. Pass but fo not require. def gcd(self, small=None, big=None):: uh, what is the difference? its still like having parameters...
ben1122 Homework 31 8,190 Oct-01-2021, 05:39 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

Hmm, I couldn't really do it.. I didnt learn how to do recursive without parameters, I didnt know it even exist till now... I think its good if I keep it that way, or you can give me a tip ( not the a...
ben1122 Homework 31 8,190 Oct-01-2021, 09:46 AM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

(Sep-30-2021, 09:25 PM)deanhystad Wrote: I think your __repr__ is wrong. The first requirement says "print in this format: small - (something), big - (something )". __repr__ should not include the...
ben1122 Homework 31 8,190 Oct-01-2021, 09:40 AM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

(Sep-30-2021, 07:59 PM)Yoriz Wrote: Yes you are correct I do not understand the requirements of your homework, it must be getting lost in the translation. uh... Its not lost in the translation. If y...
ben1122 Homework 31 8,190 Sep-30-2021, 08:06 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

You didnt understand what I mean. There arent any special requirements other then that: """" Write a class named: TwoNumbers attributes: first number - small second number - big methodes: 1. print i...
ben1122 Homework 31 8,190 Sep-30-2021, 07:40 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

(Sep-30-2021, 07:07 PM)Yoriz Wrote: It's your homework if that's the best you can do, sure, that's the best you can do. if you correct your logic you can get rid of if self.big > self.small: ...
ben1122 Homework 31 8,190 Sep-30-2021, 07:16 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

I thought of it before, but sadly the list wont work that way. I will try it ( although I tried before ). Update if I success. Thanks :) Oh. I actually tried something, you are right, is that good? or...
ben1122 Homework 31 8,190 Sep-30-2021, 07:09 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

(Sep-30-2021, 06:51 PM)Yoriz Wrote: seven_boom_range does not need to have the parameters small & big def seven_boom_range(self):it can access them as self.small and self.big, then it is making ...
ben1122 Homework 31 8,190 Sep-30-2021, 07:03 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

oh you meant that. yea that I know. what is the difference? I dont really understand? if I do a function in a class, it should work only inside the class? if I make same function outside of class, it ...
ben1122 Homework 31 8,190 Sep-30-2021, 06:38 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

Hi, thanks for the replay, appreciated :) 1. It is , look at my question - it says exactly what to do ( first start with small, big ) - then make it so it doesnt matter ( but keep the small and big th...
ben1122 Homework 31 8,190 Sep-30-2021, 06:17 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

anybody? please help? I wanna know if the code is good...
ben1122 Homework 31 8,190 Sep-30-2021, 04:30 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

(Sep-28-2021, 05:36 PM)Yoriz Wrote: Probably because of the way it is presented it looks a lot like homework. I can understand what you mean, but you can basically see the code is done. The review I...
ben1122 Homework 31 8,190 Sep-28-2021, 05:55 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

up? anybody?\ EDIT: Why is the post moved to Homework? it was on code review. its not homework, as said in the post... its code review, the code is already done, I need it to be reviewed... please mo...
ben1122 Homework 31 8,190 Sep-28-2021, 05:16 PM
    Thread: Python OOP - two numbers
Post: RE: Python OOP - two numbers

Actually, I changed something in the seven boom and now its shorter in a little ( just realized I can do it and the code still looks good, but still long ): def seven_boom_range(self, small, big):...
ben1122 Homework 31 8,190 Sep-27-2021, 05:42 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020