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

9 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][example1]

Note how the the corners are processed :)

![alt text][example2]

Runn the code

''' python3 square.py ''' [example1]: https://raw.githubusercontent.com/juozasget/square_challange/master/img/example1.png "Visual example" [example2]: https://raw.githubusercontent.com/juozasget/square_challange/master/img/example2.png "Visual example 2"

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