Guest User

Untitled

a guest
Nov 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. def combinacao(m1,m2):
  2. if nrl(m1)=="0" or nrl(m2)=="0":
  3. print ("combinacao impossivel na molecula")
  4. elif nrl(m1)==1 and nrl(m2)==1:
  5. return [molecula (nlig(m1)+nlig(m2)+1,"0")]
  6. elif nrl(m1)==1 and nrl(m2)==2 or nrl(m1)==2 and nrl(m2)==1:
  7. return [molecula(nlig(m1)+nlig(m2)+1,1)]
  8. elif nrl(m1)==2 and nrl(m2)==2:
  9. return [molecula (nlig(m1)+nlig(m2)+1,2)]
Add Comment
Please, Sign In to add comment