SHARE
TWEET

Untitled

a guest Aug 12th, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ####################################################################################
  2. #What is the value of the first triangle number to have over five hundred divisors?#
  3. ####################################################################################
  4.  
  5. #Numbers = range(10, 101)
  6.  
  7. #for n in Numbers:
  8. #    Tri_N = n*(n+1)/2
  9. #    for n in range(1,501):
  10. #        if n > 500:
  11.            
  12. x = 33.3
  13.  
  14. try:
  15.     y = int(x)
  16.     print('int')
  17. except ValueError:
  18.     print('fail')
RAW Paste Data
Top