Post History
Python 2, 57 bytes a,x=1,input() exec'print" "*(x-a)+"/"*a+"\\\\"*a;a+=1;'*x Prints it out line by line Try it online!
Answer
#2: Post edited
- # [Python 2], 57 bytes
- <!-- language-all: lang-python -->
- a,x=1,input()
- exec'print" "*(x-a)+"/"*a+"\\\\"*a;a+=1;'*x
Welcome to subpar python golfing with Quintec- [Try it online!][TIO-khnu4gzj]
- [Python 2]: https://docs.python.org/2/
- [TIO-khnu4gzj]: https://tio.run/##K6gsycjPM/r/P1GnwtZQJzOvoLREQ5MrtSI1Wb2gKDOvRElBSUujQjdRU1tJX0krUVspBgiADOtEbVtDa3Wtiv//TQA "Python 2 – Try It Online"
- # [Python 2], 57 bytes
- <!-- language-all: lang-python -->
- a,x=1,input()
- exec'print" "*(x-a)+"/"*a+"\\\\"*a;a+=1;'*x
- Prints it out line by line
- [Try it online!][TIO-khnu4gzj]
- [Python 2]: https://docs.python.org/2/
- [TIO-khnu4gzj]: https://tio.run/##K6gsycjPM/r/P1GnwtZQJzOvoLREQ5MrtSI1Wb2gKDOvRElBSUujQjdRU1tJX0krUVspBgiADOtEbVtDa3Wtiv//TQA "Python 2 – Try It Online"
#1: Initial revision
# [Python 2], 57 bytes <!-- language-all: lang-python --> a,x=1,input() exec'print" "*(x-a)+"/"*a+"\\\\"*a;a+=1;'*x Welcome to subpar python golfing with Quintec [Try it online!][TIO-khnu4gzj] [Python 2]: https://docs.python.org/2/ [TIO-khnu4gzj]: https://tio.run/##K6gsycjPM/r/P1GnwtZQJzOvoLREQ5MrtSI1Wb2gKDOvRElBSUujQjdRU1tJX0krUVspBgiADOtEbVtDa3Wtiv//TQA "Python 2 – Try It Online"