Activity for Endercraft2319
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #284289 | Initial revision | — | about 3 years ago |
Answer | — |
A: Caesar shift cipher [Python 3.8 (pre-release)], 98 bytes lambda s,n:''.join((c,chr((ord(c)+n-1-(o:=(64,96)[c.islower()]))%26+o+1))[c.isalpha()] for c in s) Try it online! (more) |
— | about 3 years ago |
Edit | Post #284287 |
Post edited: |
— | about 3 years ago |
Comment | Post #283142 |
just using while cuts down on some bytes
<!-- language-all: lang-python -->
i=13
while i:print'ZYWUSQOMKIGECABDFHJLNPRTVX'[i:i+14];i-=1
[Try it online!][TIO-ktuzztbk]
[TIO-ktuzztbk]: https://tio.run/##K6gsycjPM/r/P9PW0JirPCMzJ1Uh06qgKDOvRD0qMjw0ONDf19vT3dXZ0cnFzcPLxy8gKCQsQj060yp... (more) |
— | about 3 years ago |
Edit | Post #284288 | Initial revision | — | over 3 years ago |
Answer | — |
A: Stairs? Stairs! Stairs. [JavaScript (Node.js)], 91 bytes (n)=>[...Array(n)].map((,i)=>console.log((' '.repeat(n-i)+'/'+'##'.repeat(i)).slice(3))) Try it online! (more) |
— | over 3 years ago |
Edit | Post #284287 | Initial revision | — | over 3 years ago |
Answer | — |
A: Repeat the characters [Python 3], 34 bytes lambda a,b:''.join(bi for i in a) Try it online! (more) |
— | over 3 years ago |
Edit | Post #284285 | Initial revision | — | over 3 years ago |
Answer | — |
A: 99 Shortened Bottles of Beer [Python 3], 202 bytes a,i='bottle%s of beer on the wall',99 while i:i-=1;x=a%'s'[:i];print(i+1,x+',',i+1,x[:-12]+'.\n'+'GToa kteo otnhee dsotwonr ea nadn dp absusy isto maer omuonrde,,'[i>0::2],i or 99,a%'s'[:i!=1]+'.\n') Try it online! (more) |
— | over 3 years ago |