Re: [Tutor] 2 Very basic queries

2014-03-25 Thread Dave Angel
Saad Bashir Wrote in message: >>> ph = float(input('Enter the pH level: ')) Enter the pH level: 8.5 >>> if ph < 7.0: ...       print(ph, "is acidic.") ...    elif ph > 7.0: ...     print(ph, "is basic.") "SyntaxError: : unindent does not match any outer indentation level. ..

Re: [Tutor] 2 Very basic queries

2014-03-25 Thread Jim Byrnes
On 03/25/2014 02:21 PM, Saad Bashir wrote: Hi everyone! I am a novice programmer and actually learning to program in Python. I have two issues that I am embarrassed to present as they seem to be extremely basic. 1. But encouraged by the site to ask event the most basic questions on this forum,

Re: [Tutor] 2 Very basic queries

2014-03-25 Thread Steven D'Aprano
On Tue, Mar 25, 2014 at 10:21:49PM +0300, Saad Bashir wrote: > 2. Another problem is that the Python shell is allowing me to copy/paste > any code at all. Is there something I am not doing right? Which shell are you using? How are you trying to copy/paste? Are you on Linux, Mac, Windows, or som

Re: [Tutor] 2 Very basic queries

2014-03-25 Thread Alan Gauld
On 25/03/14 19:21, Saad Bashir wrote: As per its instructions I am using the IDLE environment (Python shell) of Python [3.2.3 MSC v.1500 64 bit AMD64]. I have been going through the book without any problems but have become stuck at the following stage: When using "if" and "elif" statement I g

Re: [Tutor] Basic asyncio usage

2014-03-25 Thread Alan Gauld
On 25/03/14 17:07, Piotr Husiatyński wrote: Hi, I'm trying to get more familiar with asyncio library. Using python 3.4, Given that this stuff is pretty much hot off the press you might get a better response on the main python list rather than on tutor. However, some of our resident guru's may

[Tutor] SyntaxError with indentation (was: 2 Very basic queries)

2014-03-25 Thread Ben Finney
Saad Bashir writes: > 1. But encouraged by the site to ask event the most basic questions on > this forum, here goes: Welcome! Yes, even very basic questions are appropriate here. But please try to keep separate questions in separate threads, with a “Subject” field that indicates what the topi

[Tutor] 2 Very basic queries

2014-03-25 Thread Saad Bashir
Hi everyone! I am a novice programmer and actually learning to program in Python. I have two issues that I am embarrassed to present as they seem to be extremely basic. 1. But encouraged by the site to ask event the most basic questions on this forum, here goes: I am using the book: Practical

Re: [Tutor] FASTA parsing, biological sequence analysis

2014-03-25 Thread Danny Yoo
On Tue, Mar 25, 2014 at 1:30 AM, Jumana yousef wrote: > Thanks Danny, but I need to write my program in python. > I managed to get it write if I have one header and one sequence. > Can you please tell me how I can get python to read each sequence (as if it > is a paragraph in a text) analyse it th

[Tutor] Basic asyncio usage

2014-03-25 Thread Piotr Husiatyński
Hi, I'm trying to get more familiar with asyncio library. Using python 3.4, I wrote simple echo server (see attachement for the code). I know that instead of using bare bone send/recv I could use some of the helper functions, but I want to start with the basics. Using current code, I can connect f

Re: [Tutor] FASTA parsing, biological sequence analysis

2014-03-25 Thread Sydney Shall
On 25/03/2014 15:55, Steven D'Aprano wrote: On Tue, Mar 25, 2014 at 03:36:12PM +, Sydney Shall wrote: I did not know about biopython, but then I am a debutant. I tried to import biopython and I get the message that the name is unknown. I am using Enthought Python 2.7.3on MAC OS X10.6.8. Wher

Re: [Tutor] FASTA parsing, biological sequence analysis

2014-03-25 Thread Steven D'Aprano
On Tue, Mar 25, 2014 at 03:36:12PM +, Sydney Shall wrote: > I did not know about biopython, but then I am a debutant. > I tried to import biopython and I get the message that the name is unknown. > I am using Enthought Python 2.7.3on MAC OS X10.6.8. > Where and more importantly for me, how do I

Re: [Tutor] FASTA parsing, biological sequence analysis

2014-03-25 Thread Sydney Shall
I did not know about biopython, but then I am a debutant. I tried to import biopython and I get the message that the name is unknown. I am using Enthought Python 2.7.3on MAC OS X10.6.8. Where and more importantly for me, how do I find and import BioPython on to my machine. With many thanks, Sydn