Just my solution to the project I found the solution to the project provided in the book really good, but it zipped the entire folder structure in the absolute path. Something I am not pleased with. By adding the filepath base name to the zipfile.Zipfile.write() function, after the absolute file path (of the file to […]
Latest Posts
Python Learning: Automate Boring Stuff with Python | Making a directory and moving files into it
With this script we can make a new directory and move files with a given ending into the directory. This was not a task in the book, but just something I thought of solving. Quite interesting to know what you could do with string operations like “startWith” and “endWith”. # creates new directory and moves […]
Python Learning: Automate Boring Stuff with Python | Chapter 8 : My Solution to Project Regex Search
Searching through a list of text files in a given directory … I personally found this enjoyable. It was easier to solve compared to last problem. What I can say at this stage is, learn how to search to documentation and google! It helps… heheh.. oh yea, leave your suggestions in the comment box. see […]
Python Learning: Automate Boring Stuff with Python | Chapter 8 : My Solution to Project Madlib
Creating MadLib: It was quite a task to solve this problem but worth it. I learned how to retrieve command line arguments using sys module, regex to match and search for the keyword in a given string, and os to create new files and open files. I think a step further would be to […]
Korean and German Language Learning Report | Alexander Bell’ Famous Quote
When one door closes, another will open Wenn eine Tür schließt, eine andere öffnet 하나의 문이 닫힐 때, 다른 문의 하나가 열리는 것이다 The list of expressions collected after reading the article about Alexander bell’s famous saying is provided below: Famous Saying berühmter Satz berühmten Gedanken berühmter Spruch. Es gibt einen berühmten Gedanken von Baron […]
Python Learning: Automate Boring Stuff with Python | Chapter 8 : My Solution to Project Multiclipboard
# mcb.pyw : Saves and loads pieces of text to the clipboard # Usage: py.exe mcb.pyw save <keyword> – Saves clipboard to keyword # py.exe mcb.pyw <keyword> – Loads keyword to clipboard # py.exe mcb.pyw list – Loads all keywords to clipboard # py.exe mcb.pyw read <path text file> <keyword> import shelve import pyperclip import […]
Python Learning: Automate Boring Stuff with Python | Solution to Part II Chapter 7 Practice Project II
import re #first argument – string to be stripped #second argument – char or default ” ” def customStrip(string: str, stripChar: str=”\s”)->str: ”’ Removes specified character from the beginning and end of a given string arguments: string: str stripChar: str returns: string ”’ if stripChar == “” or stripChar == ” “: stripChar = “\s” […]
Python Learning: Automate Boring Stuff with Python | Solution to Part II Chapter 7 Practice Project I
Solution import re #eight chars long #upper and lower case chars #at least one digit patternHasDigit = re.compile(r”\d+”) patternHasLower = re.compile(r”[a-z]+”) patternHasUpper = re.compile(r”[A-Z]+”) patterns = (patternHasDigit, patternHasLower, patternHasUpper) tests = [“asdfgh57887”, “Asfkg35a”, “23454990-“,”ASHGFDSFGHFDSDFGDS”] for test in tests: status = True for pattern in patterns: if pattern.search(test) == None: print(“{} failed {} test”.format(test, pattern.pattern)) status = False […]
Korean and German Phrase List – Nov (Final Week)
Computer with Internet (access) 인터넷이 연결된 컴퓨터 또한 공항이든 카페든 인터넷이 연결된 컴퓨터에서라면 어디서나 편집이 가능합니다. Plus, editing is possible from any computer with Internet access, whether in an airport or at a cafe. Computer mit Internet – Arbeiten im territorialen Form für die gesamte Bevölkerung von Argentinien, aber vor allem Kinder, haben Zugang zu […]
Korean and German Phrase List – Kinderarmut
Based on Kinderarmut – einmal arm, immer arm and 로미오와 줄리엣이 격렬히 사랑했던 이유 Poverty Armut In vielen afrikanischen Ländern südlich der Sahara herrscht Armut. In many African countries south of the Sahara there is poverty. 빈곤 그러나 그녀는 나라의 가장 큰 문제는 빈곤이라고 말합니다. But she says her country’s No. 1 problem is poverty. live […]
Korean | German Vocab and Phrase List
original work; original 원작 그 영화는 원작에 충실하다 The film is true[faithful] to the original (work). Das Originalwerk Die ursprüngliche Arbeit Deine ursprüngliche Arbeit muss außergewöhnlich sein. Your original work must be extraordinary. Couple 연인 이 영화는 불운한 연인들의 사랑을 다룬 것입니다. his movie is about love of star-crossed lovers. Das Pärchen Wir sehen ja […]
KOR | GER Ausdrücke – Heutige Zusammenfassung – 우리에겐 ‘수다’가 필요해!
①clamor; make a noise ②speak loudly ③spread ④insist 떠들다 계속 떠들다 언젠가 지쳐서 잠들겠지. We will fall asleep sometime after talking. Klappern Vielleicht hört das Klappern dann auf. Maybe that will stop the chattering. chatter , noise 수다 그들의 수다 때문에 공부에 정신을 집중할 수 없다. Their chatter distracts me from studying. Go to your […]
KOR | GER phrases
한국 표현 und deutsche Ausdrücke Enjoy need a hand -ing ~하는 데 도움이 필요하다 때 도움이 필요하다 그는 식사 준비할 때 도움이 필요했어. He needed a hand cooking the meal. 이거 옮기는 데 도움이 필요한데. I need a hand carrying it Is there any reason why ~ 는 이유라도 있습니까? 날 의도적으로 피하는 특별한 이유라도 […]
Kor | Ger Ausdrücke – October final Week 2017
Yesterday one of the articles I read deals with Youtube viewership. Check it out, it is quite short and easy for intermediates “TV로 유튜브 보는 시청자 늘고 있어” We/ They agreed / decided(collectively), that it is/was better to 좋겠다고 의견을 같이했다 우리 모두는 게임을 일주일 연기하는 게 좋겠다고 의견을 같이했다. We all agreed […]
KOR | GER Phrases and Vocab – Last Week of October
Sorry to be ~해서 미안해. 너무 늦어서 미안해요 I am sorry for being late Tut mir leid, dass ich Tut mir leid, dass ich an deinem Geburtstag mal wieder arbeiten muss. Sorry to be working on your birthday again. Make noise 소리를 내다, 소음을 내다 누가 그 이상한 소리를 내는 거야 ? Who made that […]
Korean and German Phrases | Third Week of October ( 2017)
Hope you like these types of lists! I will continue making them, but please do not copy and repost somewhere else. I will truly appreciate it, if you shared. Thank you! Should have 어야 했다 기차 시간에 늦지 않으려면 서둘러야 해요. Hätten v sollen Ich hätte schon früher eine Untersuchung beginnen sollen. I should have […]
Hellotalk Chronicles – 기사를 읽기 연습 – 감정
Hope you like these types of lists! I will continue making them, but please do not copy and repost somewhere else. I will truly appreciate it, if you shared. Thank you! During the past few days, I read an article about work and emotions and I ended up writing about it today, posted the […]
Korean and German Expression – Third Week of October
Hope you like these types of lists! I will continue making them, but please do not copy and repost somewhere else. I will truly appreciate it, if you shared. Thank you! To allow 도록 해준다 Live streaming 실 시간으로 방송합니다 To be valuable / to have a lot of worth 매우 가치 있다 당신은 매우 […]
한국어과 독일어 표현 – 계발
This list pertains to the article called “감정 소모 없이 쿨하고 이성적으로 사는 법“. One of the tasks for this week was / is to summarise the article in Korean and German (written and spoken), which is why I have this list prepared. If you have suggestions on improvement areas, do not hesitate to email […]
KOR | GER Phrases – With Beispiele
Favorite kind of 좋아하는 종류의 그 도서관은 내가 좋아하는 종류의 책을 구비하고 있다. The library has the sort of books I like to read. 그녀는 내 타입[내가 좋아하는 종류의 사람]이 아니다. She’s not my type. Am liebsten Shows wie diese sind mir am liebsten. This is my favorite kind of show. On the way back […]