Quick actions

cmd+k|ctrl+k

Navigation

Languages

Python 02a Square

Snippet info

Language

Python

Visibility

public

Author

tony

Created

2018-08-27T02:34:30Z

Updated

2018-08-27T11:04:18Z

# A 19 x 9 "square"

# https://www.w3schools.com/python/python_for_loops.asp

# print('0123456789')
# print('a', 'b', 'c')

# print()

# print('*******************') # 19 asterisks
# print('*                 *') # repeats 7 times
# print('*                 *')
# print('*                 *')
# print('*                 *') # 17 spaces
# print('*                 *')
# print('*                 *')
# print('*                 *')
# print('*******************')

# print()

# for line in range(70, 20, -3):
#     print(line)

# print()

print('*' * 19)

for line in range(7):
    print('*', ' ' * 15, '*')

print('*' * 19)
INFO