Skip to content

Sanjaya-Danushka/build-tower-codewars-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Build Tower - Codewars Python

This project is a Python implementation of the "Build Tower" coding challenge from Codewars.

🔧 Function

def tower_builder(n_floors):
    floor = n_floors + n_floors - 1
    return [f"{('*' * x).center(floor)}" for x in range(1, floor + 2, 2)]

About

Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages