Skip to content

Commit

Permalink
bite 29
Browse files Browse the repository at this point in the history
  • Loading branch information
boraxpr committed Nov 5, 2019
1 parent 891d385 commit be4f208
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions 29/wrong_char.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
def get_index_different_char(chars):
result = []
Al = 0
nonAl = 0
for char in chars:
Expand All @@ -18,17 +17,17 @@ def get_index_different_char(chars):
for char in chars:
charS = str(char)
if not charS.isalnum():
result.append(chars.index(char))
index = int(chars.index(char))
else:
for char in chars:
charS = str(char)
if charS.isalnum():
result.append(chars.index(char))
return result
index = int(chars.index(char))
# print(type(index))
return index


print(get_index_different_char(
[2, '.', ',', '!']))
#
print(get_index_different_char([2, '.', ',', '!']))

# A = ["1","3","A"]
# print(A.index("A"))

0 comments on commit be4f208

Please sign in to comment.