Skip to content

Commit

Permalink
[PUBLISHER] Merge #3
Browse files Browse the repository at this point in the history
  • Loading branch information
itslijohnny authored Feb 4, 2024
1 parent fcccc3f commit b342ab1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions python/Remove non numeric string.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@





```python

str='%1b4k&vwe@8s'

def clean(str):
result = []
r =''
for i,j in enumerate(str):
if (not j.isalnum()) and i>0:
result.append(str[i-1])
else:
result.append(j)
return r.join(result)

clean(str)

```

0 comments on commit b342ab1

Please sign in to comment.