Guest User

Untitled

a guest
Aug 31st, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.67 KB | None | 0 0
  1. while 1==1:
  2.    
  3.  
  4.     import random as rn
  5.     blist = list(range(-81, 82))
  6.     clist = list(range(-81, 82))
  7.     xlist = list(range(-9, 10))
  8.     xxlist = list(range(-9, 10))
  9.     rn.shuffle (blist)
  10.     rn.shuffle (clist)
  11.     c = clist[1]
  12.     b = blist[1]
  13.     x = xlist [1]
  14.     xx = xxlist [1]
  15.  
  16.     while x + xx != -b and x * xx != c:
  17.         rn.shuffle (blist)
  18.         rn.shuffle (clist)
  19.         rn.shuffle (xlist)
  20.         rn.shuffle (xxlist)
  21.         c = clist[1]
  22.         b = blist[1]
  23.         x = xlist [1]
  24.         print (x)
  25.         xx = xxlist [1]
  26.         print (xx)
  27.     else:
  28.         bact = ''
  29.         cact = ''
  30.         if b > 0:
  31.             bact = '+'
  32.         else:
  33.             bact = ''
  34.         if c > 0:
  35.             cact = '+'
  36.         else:
  37.             cact = ''
  38.         print ('x2', bact, b, cact, c, '=0')
  39.         break
Add Comment
Please, Sign In to add comment