Просмотр исходного кода

Merge pull request #33 from dbojan/patch-3

updated to python 3 code
Swaroop C H 9 лет назад
Родитель
Сommit
a39bb933b9
1 измененных файлов с 3 добавлено и 3 удалено
  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...