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
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
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()
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
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
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
:
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
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
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
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
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
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
12 matches
Mail list logo