Re: [Tutor] Creating lists with definite (n) items without repetitions

2015-09-10 Thread Francesco Loffredo via Tutor
On 09/09/2015 19:45, Francesco Loffredo via Tutor wrote: On 09/09/2015 18:59, Oscar Benjamin wrote: I don't think the code above works. For n=27 it should count 117 (according to the formula I showed) but instead it comes up with 101. I tried it with a smaller n by setting pool to range(1,

[Tutor] indent error on if/elif/else

2015-09-10 Thread richard kappler
Here's my code, no tabs were used, all whitespace verified made with spacebar: print("Please enter a number for feed speed...") print("1 - Batch") print("2 - 2 per second") print("3 - Real Time") print("4 - Exit") if x == ord('1'): delay = 0 elif x == ord('2'): delay = 0.5 elif x ==

Re: [Tutor] A further question about opening and closing files

2015-09-10 Thread Laura Creighton
In a message of Wed, 09 Sep 2015 23:19:43 +0100, Alan Gauld writes: >..., if your game engine is running on a server shared by other users and >some of them are running critical apps (think a businesses billing or >accounting suite that must complete its run within a 1 hour window say) >then

Re: [Tutor] indent error on if/elif/else

2015-09-10 Thread Tim Golden
On 10/09/2015 16:38, richard kappler wrote: > Here's my code, no tabs were used, all whitespace verified made with > spacebar: > > print("Please enter a number for feed speed...") > print("1 - Batch") > print("2 - 2 per second") > print("3 - Real Time") > print("4 - Exit") > > if x == ord('1'):

Re: [Tutor] A further question about opening and closing files

2015-09-10 Thread Alan Gauld
On 10/09/15 16:44, Laura Creighton wrote: ..., if your game engine is running on a server shared by other users and some of them are running critical apps (think a businesses billing or We were talking about mobile devices ... Ok, in that case I'd guess the client playing the game is only

Re: [Tutor] indent error on if/elif/else

2015-09-10 Thread Ben Finney
richard kappler writes: > Here's the Traceback: > > File "dataFeedTest.py", line 44 > else: >^ > IndentationError: expected an indented block A comment is not a statement. So, your second ‘elif’ block is empty, then immediately followed by an ‘else’; Python

Re: [Tutor] Question how to ready data from excle file and convert the german to english language

2015-09-10 Thread Alan Gauld
On 10/09/15 18:00, Sarika Shrivastava wrote: I wanted to ready data from excel file which in german Language and onovert to English language ?? Those are two completely separate questions. To read Excel there are several options. The simplest is if you can convert the file to csv and use

[Tutor] Question how to ready data from excle file and convert the german to english language

2015-09-10 Thread Sarika Shrivastava
Hello pythonistats, I wanted to ready data from excel file which in german Language and onovert to English language ?? -- Thanks Sarika Shrivastava | Software Developer Trainee www.zeomega.com ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] About using list in a function

2015-09-10 Thread D Wyatt
Scrambled on gmail here too. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor