Skip to content
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
anumsh
/
Python-Programs
Public
Notifications
You must be signed in to change notification settings
Fork
39
Star
8
Code
Issues
0
Pull requests
10
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
Python-Programs
/
doubleappear.py
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
21 lines (20 loc) · 483 Bytes
master
Breadcrumbs
Python-Programs
/
doubleappear.py
Copy path
Top
File metadata and controls
Code
Blame
21 lines (20 loc) · 483 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# program to find if the number or aplhabet appear twice in word or in number
inp=list("anumsharma usa")
result = []
n = len(inp)
print n
for i in range(n):
print " i is ",i
count = 0
for j in range(i):
print "value of j is ",j
print "input i",inp[i]
print "input j",inp[j]
if inp[i] == inp[j]:
count += 1
print "count is ",count
if count == 2:
break
if count == 1:
result.append(inp[i])
print(result)
You can’t perform that action at this time.