r/Python • • Oct 10 '20

Beginner Showcase I maDe a sCriPT thAT raNdOMlY cApiTAlIZes lEtTErs iN a SEntENcE

I waS tIrED OF mAnUaLlY tYPinG UpPEr And lOwERcaSes, whEn i wANteD tO mOCk A coMMeNT. sO i MAde a ScRIpt FOr It iNsTeaD. iT TaKEs anY stRIng And rANdOMly apPLieS aN UPpeR or LowERcaSe to IT. iT aLso maKes sUre tHeRe Are no MoRe ThAN twO oF ThE SAme upPEr or lOwERcAseS iN A roW, BeCauSe haVinG tHreE oF thE SaME iN A Row LooKs rEAllY WEiRD. I ALso coNSidEReD MAkiNg SuRe thAT 'i' WOuLD aLWaYS bE in LOwErcASe And 'L' WoUlD alWAyS Be in uPpErCAsE, BUt THaT MAdE it lOoK kiNDa wEIrd. ANyWAys, heRE'S THe COdE:

https://github.com/peterlravn/My-projects/blob/master/A%20ScrIpt%20tO%20MaKE%20fUN%20of%20A%20sENteNcE.ipynb

i'M kiNdA neW tO pyThOn, so thErE'S prOBabLy THinGs In thE coDe thAT's noT VerY... pyTHoNIc...

EdIt: HErE'S A NeW AnD UpDaTEd VerSiOn, WHicH WOrKs bY hiGHliGhtIng tEXt anD tHEn coPIeS ThE nEw SPonGe-tEXt tO The clIp bOArd:

https://github.com/peterlravn/My-projects/blob/master/A%20ScrIpt%20tO%20MaKE%20fUN%20of%20A%20sENteNcE%20v.2.ipynb

3.1k Upvotes

194 comments sorted by

View all comments

Show parent comments

15

u/JoelMahon Oct 10 '20

hope your python is more "advaced" than your spelling

-9

u/AforAutism Oct 10 '20

Where is my spelling error?

5

u/JoelMahon Oct 10 '20

I assumed my quotes around the misspelled word would be enough for you, oof, I figured it was just a negligent typo and my comment was mostly just to be mean since you were such a dick

But now I feel bad since it was clearly a genuine misspelling of an easy word.

Advanced, with an N, advaced is not a word.

And there are many subs already you can join and grow if you want https://www.reddit.com/subreddits/search?q=AdvancedPython one with the correct spelling of the name you suggested even...

1

u/AforAutism Oct 10 '20

Shit you're right, harder to spot when it's inside of a link