We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e810af0 commit cc26d7dCopy full SHA for cc26d7d
Sets/SymmetricDifference.py
@@ -7,11 +7,11 @@
7
Problem : https://www.hackerrank.com/challenges/symmetric-difference/problem
8
'''
9
# Enter your code here. Read input from STDIN. Print output to STDOUT
10
-m=int(raw_input())
11
-set_a_str_ar=raw_input().strip().split()
+m=int(input())
+set_a_str_ar=input().strip().split()
12
set_a_ar=list(map(int,set_a_str_ar))
13
-n=int(raw_input())
14
-set_b_str_ar=raw_input().strip().split()
+n=int(input())
+set_b_str_ar=input().strip().split()
15
set_b_ar=list(map(int,set_b_str_ar))
16
17
set_a_set=set(set_a_ar)
@@ -22,4 +22,4 @@
22
res_ar=list(res_set)
23
res_ar.sort()
24
for i in res_ar:
25
- print(i)
+ print (i)
0 commit comments