Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Study Questions
#9
If the order doesn't matter, you can use sets.
They come from set theory and do what you want.
Remind: Sets are not ordered and sets do only have unique elements.

set('holla') - set('hello') # the solution
set('holla') | set('hello')
set('holla') & set('hello')
set('holla') ^ set('hello')
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
Study Questions - by captainflint - Jan-31-2018, 03:09 PM
RE: Study Questions - by j.crater - Jan-31-2018, 04:09 PM
RE: Study Questions - by sparkz_alot - Jan-31-2018, 09:24 PM
RE: Study Questions - by captainflint - Feb-01-2018, 11:16 AM
RE: Study Questions - by Mekire - Feb-01-2018, 12:45 PM
RE: Study Questions - by captainflint - Feb-01-2018, 03:11 PM
RE: Study Questions - by gruntfutuk - Feb-01-2018, 06:01 PM
RE: Study Questions - by captainflint - Feb-02-2018, 12:27 PM
RE: Study Questions - by DeaD_EyE - Feb-02-2018, 12:55 PM

Forum Jump:

User Panel Messages

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