[CHM 330] Python Docs

Andrew J. Pounds pounds_aj at mercer.edu
Sat Feb 27 14:38:51 EST 2021


Those of you that are working through the python docs may run into a
problem with you try using a nested if statement.  My code was for an
old version of python that supported things like

if (condition 1):
  statment 1
else if (condition 2):
  statement 2
else:
  statement3


To compile with the Anaconda enviroment (which is exclusively Python 3)
you have to


if (condition 1):
  statment 1
elif (condition 2):
  statement 2
else:
  statement3


Notice the "elif".   I will fix the documentation later, but that should
help anyone who is stuck.



-- 
Andrew J. Pounds, Ph.D.  (pounds_aj at mercer.edu)
Professor of Chemistry and Computer Science
Director of the Computational Science Program
Mercer University,  Macon, GA 31207   (478) 301-5627

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/chm330/attachments/20210227/5aa41ed5/attachment.html>


More information about the chm330 mailing list