From bdfcfccbe591e15221f35add01132174c9b4e669 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 1 Jan 1992 19:35:13 +0000 Subject: New == syntax --- Demo/scripts/pi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Demo/scripts/pi.py') diff --git a/Demo/scripts/pi.py b/Demo/scripts/pi.py index 5e19db6b13..74a66a7a47 100755 --- a/Demo/scripts/pi.py +++ b/Demo/scripts/pi.py @@ -19,7 +19,7 @@ def main(): # Print common digits d, d1 = a/b, a1/b1 #print a, b, a1, b1 - while d = d1: + while d == d1: # Use write() to avoid spaces between the digits sys.stdout.write(`int(d)`) # Flush so the output is seen immediately -- cgit v1.2.1