mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
New == syntax
This commit is contained in:
parent
4d8e859e8f
commit
bdfcfccbe5
73 changed files with 419 additions and 391 deletions
|
|
@ -53,7 +53,7 @@ def make_all(mat):
|
|||
return all
|
||||
|
||||
def make_elements(n, d):
|
||||
if d = 0: return [poly.one(0, 0)]
|
||||
if d == 0: return [poly.one(0, 0)]
|
||||
sub = make_elements(n, d-1)
|
||||
all = []
|
||||
for a in sub:
|
||||
|
|
@ -75,7 +75,7 @@ def checkfield(n, p):
|
|||
inv1 = inv[:]
|
||||
all1.sort()
|
||||
inv1.sort()
|
||||
if all1 = inv1: print 'BINGO!'
|
||||
if all1 == inv1: print 'BINGO!'
|
||||
else:
|
||||
print 'Sorry:', n, p
|
||||
print all
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue