2020-12-01 15:00:44 +01:00
|
|
|
import random
|
|
|
|
|
2021-01-28 22:50:29 +01:00
|
|
|
width = 102
|
2020-12-01 15:00:44 +01:00
|
|
|
lines = 8
|
|
|
|
|
|
|
|
char = 'o'
|
|
|
|
space = ' '
|
|
|
|
|
|
|
|
ascii = ''
|
|
|
|
|
|
|
|
for line in range(lines):
|
|
|
|
for x in range(width):
|
|
|
|
if line == 0:
|
|
|
|
ascii += char
|
|
|
|
if line == 1:
|
|
|
|
if x % 2 == 0:
|
|
|
|
ascii += char
|
|
|
|
else:
|
|
|
|
ascii += space
|
|
|
|
if line == 2:
|
|
|
|
if x % 3 == 0:
|
|
|
|
ascii += char
|
|
|
|
else:
|
|
|
|
ascii += space
|
|
|
|
if line == 3:
|
|
|
|
if x % 4 == 0:
|
|
|
|
ascii += char
|
|
|
|
else:
|
|
|
|
ascii += space
|
|
|
|
if line == 4:
|
|
|
|
ascii += space
|
|
|
|
if line == 5:
|
|
|
|
if x % 2 == 0:
|
|
|
|
ascii += char
|
|
|
|
else:
|
|
|
|
ascii += space
|
|
|
|
if line == 6:
|
|
|
|
if x % 4 == 0:
|
|
|
|
ascii += char
|
|
|
|
else:
|
|
|
|
ascii += space
|
|
|
|
if line == 7:
|
|
|
|
if x % 5 == 0:
|
|
|
|
ascii += char
|
|
|
|
else:
|
|
|
|
ascii += space
|
|
|
|
|
|
|
|
ascii += '\n'
|
|
|
|
|
2020-12-01 16:08:28 +01:00
|
|
|
print(ascii)
|