We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Strings
- Alphabet Rangoli
- Discussions
Alphabet Rangoli
Alphabet Rangoli
Sort by
recency
|
1282 Discussions
|
Please Login in order to post a comment
def print_rangoli(size): alphabet ="abcdefghijklmnopqrstuvwxyz" alphabet = [char for char in alphabet] a1 = alphabet[:size]
from string import ascii_lowercase as asl
def print_rangoli(size): width = (size * 2 - 1) * 2 - 1 l0 = list(range(size)) + list(range(size))[::-1][1:]