when I test that command( z = [item for item in x if item not in y] or
z=[set(x)-set(y)] ) in python shell with example lists, their results is true . but my real list's item isn't integer and is like this: x=[1acs,1esf,2all,...]. I run it in windows cmd shell.
If you could provide a better example of the input and output, and post the code you've done, you'll get more help. I'm not certain of what you're asking at the moment; you've been given code that does what you want.
I parsing tow text files line to line that in each line there is a four character that beginning with integer like 2BBI,3HHR,... and appended each file data in separate list because I want to omit repetitive items among them.
are they files created by a module/program? Because if they are then why not just pickle them to a .dat file, load them in your module so you have the lists and use the "z = [item for item in x if item not in y]" idea?
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...