5 votes

Check how many days a country has been independent

Delete all of your comments. None of them make the code more obvious than just reading it. strftime is unused so don't import it. Consider using a dictionary of ...
user avatar
  • 49.6k
2 votes

Small shopping cart application - Solid Principles and Clean Code

I see no need for abstract classes here - there are no alternate implementations. This string: " Name: %s \n Price: %s \n" % (self.name, self.price) has ...
user avatar
  • 49.6k
1 vote

Compare files by name in two folders A and B and delete duplicates from folder A

The first "duplicates" line should read duplicates, *_ = groups = [files[0] , files[1]] my extended code move to trash - instead of delete ...
user avatar
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible