Cedars Math:Computer and Python

From Rasmapedia
Jump to navigation Jump to search
  • Python Code
 print("Buddhist  code.")
 x = 4
 item=1
 while x<6:
 print("Glory to God in the highest!",item)
 item = item +1
 print ("The End.") 
  • I've written up a handout of some Python code for testing divisibility by 2,3,5, and 7. Its purpose is to illustrate how one has to write up instructions for a computer carefully and clearly.
  • The Python code by Professor Connell to test the Polya Conjecture.