Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pattern = ['#', '.', '.', '.'] * 151
- pattern_len = int(input())
- rows = round(pattern_len * 1.4)
- multiplier = 1
- for i in range(rows):
- col = ''.join(pattern[i:pattern_len * multiplier])
- multiplier += 1
- print(col[:pattern_len])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement