SHARE
TWEET

Untitled

a guest Sep 22nd, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/python
  2. print "Content-type: text/html"
  3. print
  4. print "<html><head>"
  5. print ""
  6. print "</head><body>"
  7.  
  8. import cgi
  9. form = cgi.FieldStorage()
  10. result = 0
  11. numberN = form["numberN"].value
  12. if isinstance(numberN, int) and numberN > 0
  13.     for x in range(0, numberN)
  14.         result += x
  15.  
  16. print result
  17.  
  18. print "</body></html>"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top