diff --git a/Exercise 3/11 - Doble lokker/11b.py b/Exercise 3/11 - Doble lokker/11b.py new file mode 100644 index 0000000..88fccf5 --- /dev/null +++ b/Exercise 3/11 - Doble lokker/11b.py @@ -0,0 +1,14 @@ +def numberPyramid(length): + for i in range(length): + print('X', ' ' * i + 'X') + + +def numberPyramidDoubleLoop(length): + for i in range(length): + space = ''.join([' ' for _ in range(i)]) + print('X', space + 'X') + + +if __name__ == "__main__": + n = int(input('n: ')) + numberPyramidDoubleLoop(n) \ No newline at end of file