Procházet zdrojové kódy

Merge pull request #33 from dbojan/patch-3

updated to python 3 code
Swaroop C H před 9 roky
rodič
revize
a39bb933b9
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      programs/continue.py

+ 3 - 3
programs/continue.py

@@ -1,9 +1,9 @@
 while True:
-    s = raw_input('Enter something : ')
+    s = input('Enter something : ')
     if s == 'quit':
         break
     if len(s) < 3:
-        print 'Too small'
+        print('Too small')
         continue
-    print 'Input is of sufficient length'
+    print('Input is of sufficient length')
     # Do other kinds of processing here...