Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Collection program not working as expected  RSS feed

 
shuba gopal
Ranch Hand
Posts: 85
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi the following program is from Deitel with minor modifications. The method removeColors is just as it is in the book. The colors BLUE,RED,GREEN are expected to be removed but they are still present after the method runs.




 
shuba gopal
Ranch Hand
Posts: 85
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I made some changes to the program and it worked. The SOP after removeColors() had to be modified. Thanks



I panicked because its Collection. Thanks

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!