Skip to content

Python code to print a square of N size, with numerated edges

Notifications You must be signed in to change notification settings

juozasget/square_challange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Square edge room selection

Code works for any N greater than 1.

Visual representation works for N > 1, as long as the output fits in the screen.

Visual representation of how the count_rooms loop runs:

alt text

Note how the the corners are processed :)

alt text

Examples with N=2, N=3, N=5:

alt text

Run the code

python3 square.py

About

Python code to print a square of N size, with numerated edges

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages