Re: [Tutor] Translator - multiple choice answer

2014-05-18 Thread Mario Py
Danny and C Smith, Thank you very much for your answers. And sorry for late reply I was away. I will start including encoding="utf8" right away. Printing them with numbers is also great idea and decent compromise, thanks >> The print function puts a newline at the end. You can change thi

Re: [Tutor] Translator - multiple choice answer

2014-05-14 Thread C Smith
This might be useful for reading values from a text value into a dictionary: https://stackoverflow.com/questions/17775273/how-to-read-and-store-values-from-a-text-file-into-a-dictionary-python On Wed, May 14, 2014 at 7:00 PM, Danny Yoo wrote: >> Program read TXT file (c:\\slo3.txt) >> In this fil

Re: [Tutor] Translator - multiple choice answer

2014-05-14 Thread Danny Yoo
> Program read TXT file (c:\\slo3.txt) > In this file there are two words per line separated by tab. > First word is foreign language and second word is proper translation, like > this: > > pivobeer > kruhbread > rdeca red > krompir potatoe > hisahouse > cesta road > autocar > >

[Tutor] Translator - multiple choice answer

2014-05-14 Thread Mario Py
Hi all, my first post here and my first ever programing project! (actually stealing code from all over the internet for now) So please be easy on me & hints probably will not work with me, I'm complete beginner... I'm trying to create something useful, small program which will help my wife to