Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
smiles = "CCCC"
subst = ["F","Cl"]
l = list(smiles)
print l
s = ""
print l[1]+l[2]+l[3]
for i in range(len(subst)):
x = subst[i]
for j in range(len(subst)):
y = subst[i]
if j>=i:
print x+smiles+y
for i in range(len(l)):
s = s + l[i]
print s
x = "CN1CC[C@]23[C@H]4Oc5c(O)ccc(C[C@@H]1[C@@H]2C=C[C@@H]4O)c35"
words = x.split("N")
print words
print words[0]+"[N@H+]"+words[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment