Showing posts with label caress. Show all posts
Showing posts with label caress. Show all posts
Python | I did it.
I made and compiled my very first application. Windowed application. '.exe' File. Please hold the applause, and download it. This will take you to a SAFE mediafire download page, god this is cool.
And yes I did call it 'skux', and yes the icon is a skull, why? BECAUSE I CAN, MWUHAHAHAHAH.
but yeah, here's a screencap of it.
ps. When opening it, don't move it out of the folder it comes in, leave it there. make a shortcut (WHY AM I TELLING YOU THIS WHO EVEN READ THIS BLOG HA HA HA)
YES JENNIFER LAWRENCE IS A GODDESS
Python | Word Swap
So right now i'm still learning python, and I've been practicing 'regex' for the past hour, and used the tenacious d song list file as an example, here's the code
1 2 3 4 5 6 7 8 9 10 11 12 | import re def main(): fh = open ('rotf.txt') v = input('What word would you like to change? ') b = input('What word would you like to swap it with? ') for line in fh: match = re.search(v, line) if match: print(line.replace(match.group(), b), end='') main() |
In the list there are songs consisting of the 'f' word (if you know what I mean) so i wanted to change the 'f' word, to 'caress', and this is what i got:
Caress Her Gently
Hard Caressing
I Wanna Caress You
They Caressed Our Asses
(I found this very amusing)
