[Tutor] Programming for Everybody (Python) - Oct 6, University of Michigan

2014-09-07 Thread Mario Py
Here is another Python course that starts October 6 2014: https://www.coursera.org/course/pythonlearn ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Instead of *.TXT I would like to use *.CSV exported from Excel

2014-07-04 Thread Mario Py
On 7/4/2014 1:21 AM, Peter Otten wrote: data = list(data) shuffle(data) Peter, Mitesh and Alan, Thank you for your help! And thank you for explaining details. Now I understand why it worked in my previous (*.TXT) version since it was already as list. Thanks again, program works great

Re: [Tutor] Instead of *.TXT I would like to use *.CSV exported from Excel

2014-07-03 Thread Mario Py
OK, I'm finally getting closer. Code bellow (looks like) works if I comment out shuffle part But I need it to shuffle so I get random picked words. How do I get shuffle part to work? from random import shuffle import csv print('Write translation of Slovene word ') print()

[Tutor] Instead of *.TXT I would like to use *.CSV exported from Excel

2014-07-03 Thread Mario Py
Windows 7, Python 3.4.0 I have a simple translation refresher program that works. For input I'm using TXT file, (prevedi.txt) words in it are separated by coma that I'm editing, adding manually. (adding new 'refresher' words as needed) And program works: from random import shuffle

[Tutor] MIT - Free Python course started today

2014-06-12 Thread Mario Py
Sort of off topic, (don't kill me) but then again very useful for beginners! MIT started free Python course today: https://www.edx.org/course/mitx/mitx-6-00-1x-introduction-computer-1841 Unfortunately they are using Python 2.7 :-( You can even get a certificate if you finish with high enough

Re: [Tutor] Coma separated instead TAB separated

2014-06-09 Thread Mario Py
Steven, How about , for comma? LOL! I didn't know, now I know :-) Thank you also for all additional info. I printed it out! Here is a list of the escape sequences allowed: \a BEL (bell) \b BS (backspace) \f FF (formfeed) \n LF (linefeed or newline) \r CR (carriage

Re: [Tutor] Coma separated instead TAB separated

2014-06-09 Thread Mario Py
: On 08/06/14 19:56, Mario Py wrote: Hi everyone, this is very basic/beginner question. Hi, Please don;t reply to an existing message to start a new discussion. It messes up the threading and makes it harder for people searching the archives in the future. I'm reading TXT file, two words per line

[Tutor] Coma separated instead TAB separated

2014-06-08 Thread Mario Py
Hi everyone, this is very basic/beginner question. I'm reading TXT file, two words per line that are separated by TAB: question, rightAnswer = line.strip().split('\t') I would like to use TXT file that it would be separated by coma. How do I change that line of code? I tried these two

[Tutor] Android

2014-06-04 Thread Mario Py
I'm writing one small simple program that will use Tkinter. Once finished, will I be able to run it on android tablet? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Android

2014-06-04 Thread Mario Py
Allan, Hans and Stefan, Thank you for your replies. I will check out Kivy and Google API, thanks a lot for suggestions On 6/4/2014 6:38 AM, Stefan Behnel wrote: Mario Py, 04.06.2014 07:47: I'm writing one small simple program that will use Tkinter. Once finished, will I be able to run

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 this

[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