Explorar el Código

Print space instead of dot in 10

Taddeus Kroes hace 7 años
padre
commit
1a8a919d6d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      10_stars.py

+ 1 - 1
10_stars.py

@@ -21,5 +21,5 @@ points = set(zip(x, y))
 
 print('message after', t, 'seconds:')
 for py in range(min(y), max(y) + 1):
-    print(''.join('#' if (px, py) in points else '.'
+    print(''.join('#' if (px, py) in points else ' '
           for px in range(min(x), max(x) + 1)))