Skip to content

Instantly share code, notes, and snippets.

@hillal20
Last active September 8, 2018 03:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hillal20/ec4867a935da5c23a88ae54a6141ec88 to your computer and use it in GitHub Desktop.
Save hillal20/ec4867a935da5c23a88ae54a6141ec88 to your computer and use it in GitHub Desktop.
AdmiredDishonestConditions created by hillal20 - https://repl.it/@hillal20/AdmiredDishonestConditions
import functools
log = 'aadadhsbsgsbshhhhhhobobo'
l= list(log)
r = list(reversed(l))
arr = []
rev = []
pl = []
an = []
st = ''
f = 0
def total(x, y):
return x+y
# print(l)
#print(r)
for i in l:
arr.append(i)
rev = list(reversed(arr))
print('rev ==>',''.join([i for i in rev]))
print ('arr==>',''.join([i for i in arr]))
if ''.join([i for i in rev]) == ''.join([i for i in arr]):
pl.append(''.join([i for i in rev]))
print('pl====>', pl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment