Skip to content

Commit

Permalink
Practice More! ✈️
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyvan-af committed Jun 30, 2024
1 parent ce0c823 commit 9aa5dd8
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions Python/Set.difference() Operation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
![alt text](image.png)
Binary file added Python/Set.difference() Operation/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions Python/Set.difference() Operation/solution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
n_E = int(input())
L_E = input().split(" ")
n_F = int(input())
L_F = input().split(" ")
L_E = [int(num) for num in L_E]
L_F = [int(num) for num in L_F]

print(len(set(L_E) - set(L_F)))
1 change: 1 addition & 0 deletions Python/Set.symmetric_difference() Operation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
![alt text](image.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions Python/Set.symmetric_difference() Operation/solution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
n_E = int(input())
L_E = input().split(" ")
n_F = int(input())
L_F = input().split(" ")
L_E = [int(num) for num in L_E]
L_F = [int(num) for num in L_F]

print(len(set(L_E) ^ set(L_F)))

0 comments on commit 9aa5dd8

Please sign in to comment.