Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Get count
#python 3.5.2 def get_count(): n = int(input()) for i in range(n): s = input().strip() if not i: l = list(set(s)) else: i = 0 while l and i < len(l) - 1: ch = l[i] if not ch in s: l.remove(ch) else: i += 1 return len(l) count = get_count() print(count)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
dictionary function
PyRef
"Hello,world!"
Python3: List Functions I
RESTRUCTURADO
V
nnn
https://rextester.com/HYVN80193
Country Flags
PyRegLookBehind
Please log in to post a comment.