All problems
EasySets
Set difference
Elements in a but not in b — print sorted.
- #set
- #difference
Sample input
{1,2,3,4}, {3,4,5,6}Sample output
[1, 2]
set-difference.py
Output
Press "Run code" to execute.
Loading…
Elements in a but not in b — print sorted.
{1,2,3,4}, {3,4,5,6}[1, 2]
Press "Run code" to execute.