Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Vending Machine Project - OOP Issues
Post: RE: Vending Machine Project -

(Apr-05-2020, 05:10 AM)buran Wrote: please fix the indentation of the code Sorry Buran, I have updated now
wiggles Homework 2 3,529 Apr-05-2020, 05:15 AM
    Thread: Vending Machine Project - OOP Issues
Post: Vending Machine Project - OOP Issues

Hi, I have been working on a vending machine project which is outlined below. After selecting 'b' in the first menu, I am having trouble with comparing the selected item cost with the total amount...
wiggles Homework 2 3,529 Apr-05-2020, 03:57 AM
    Thread: Calling an class attribute via a separate attribute in input
Post: RE: Calling an class attribute via a separate attr...

Thanks guys. I have solved it using the dict method. Appreciate the time you guys took to look over it for me
wiggles Homework 7 2,891 Apr-04-2020, 10:54 PM
    Thread: Calling an class attribute via a separate attribute in input
Post: RE: Calling an class attribute via a separate attr...

Hi - thanks guys. Unfortunately if change the list to a dict as Buran suggests, that it impacts me down the line when I try to use enumerate on the items to outline the list - see below class Item: ...
wiggles Homework 7 2,891 Apr-04-2020, 10:02 PM
    Thread: Calling an class attribute via a separate attribute in input
Post: Calling an class attribute via a separate attribut...

Hi, am trying to call a class attribute but am unable to get it to work. When the user inputs the Item.code into a float input, I want to display "You have selected (Item.name) which is (Item.price)....
wiggles Homework 7 2,891 Apr-04-2020, 07:50 AM
    Thread: Vending machine help
Post: RE: Vending machine help

Righto - so I have gone about this a little different. I have changed up my classes and have the following code with two classes instead of 3. My issue is with lines 36 - 39. I need to reference the i...
wiggles Homework 5 8,532 Apr-04-2020, 05:28 AM
    Thread: Vending machine help
Post: RE: Vending machine help

Sure, so I can get my code to run for the project up until it asks to insert a coin (lines 33 - 36). I was trying to pull the method that was Vending_Machine.insert_coin in the Vending Machine class. ...
wiggles Homework 5 8,532 Apr-03-2020, 07:49 AM
    Thread: Vending machine help
Post: RE: Vending machine help

Thanks, I went through and adjusted it - seems to have sorted that issues.. I am a little further through, and have got it working until I enter my coin into the machine. I am not sure how to pull a...
wiggles Homework 5 8,532 Apr-03-2020, 05:18 AM
    Thread: Vending machine help
Post: Vending machine help

Hi, I have a project to build a vending machine that must display items and balance of coins within the machine. I have done some work on it and am stuck on line 31 of my code. I have defined self.tot...
wiggles Homework 5 8,532 Apr-03-2020, 01:09 AM

User Panel Messages

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