SHARE
TWEET

Rubio's number sequence generator

a guest Feb 11th, 2017 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pi = "3.14159 26535 89793 23846 26433 83279 50288 41971 69399 37510 58209 74944 59230 78164 06286 20899 86280 34825 34211 70679 82148 08651 32823 06647 09384 46095 50582 23172 53594 08128 48111 74502 84102 70193 85211 05559 64462 29489 54930 38196 44288 10975 66593 34461 28475 64823 37867 83165 27120 19091 45648 56692 34603 48610 45432 66482 13393 60726 02491 41273 72458 70066 06315 58817"
  2. pi_formatted = []
  3. for s in pi:
  4.     if s != " ":
  5.         pi_formatted.append(s)
  6.  
  7. delta = 0
  8. l = []
  9. for digit in pi_formatted:
  10.     if digit == '3':
  11.         l.append(delta)
  12.         delta = 0
  13.     else:
  14.         delta+=1
  15.  
  16. print(l)
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
 
Top