Re: Python "Bad syntax"

2018-02-05 Thread Bob van der Poel
On Mon, Feb 5, 2018 at 10:13 AM, wrote: > > Hi, I have a problem in continuing the function. > > I'm a beginner, I'm learning from a textbook. I'm going to put the > following examples from a textbook that displays "wrong syntax" > > >> for letter in "ABCDEFGHIJKLMNOPQRSTUVWXYZ": >>>

Re: Python "Bad syntax"

2018-02-05 Thread Chris Angelico
On Tue, Feb 6, 2018 at 4:28 AM, Phil Boutros wrote: > wrote: >> >> Hi, I have a problem in continuing the function. >> >> I'm a beginner, I'm learning from a textbook. I'm going to put the >> following examples from a textbook that displays "wrong syntax" >> > for letter in "ABCDEFGHIJKLMNOP

Re: Python "Bad syntax"

2018-02-05 Thread Phil Boutros
Phil Boutros wrote: > > Which version of python are you using? That syntax for "print" > started in python 3 (since print became a function). > > Try adding: > > from __future__ import print_function > > before your code if you're still using python 2.x Altough, testing it in Python2,

Re: Python "Bad syntax"

2018-02-05 Thread Christian Gollwitzer
Am 05.02.18 um 18:13 schrieb darkorbitaknaen...@centrum.cz: Hi, I have a problem in continuing the function. I'm a beginner, I'm learning from a textbook. I'm going to put the following examples from a textbook that displays "wrong syntax" for letter in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":      

Re: Python "Bad syntax"

2018-02-05 Thread Phil Boutros
wrote: >   > Hi, I have a problem in continuing the function. >   > I'm a beginner, I'm learning from a textbook. I'm going to put the > following examples from a textbook that displays "wrong syntax" >   for letter in "ABCDEFGHIJKLMNOPQRSTUVWXYZ": >             if letter in "AEIOU": >      

Re: Python "Bad syntax"

2018-02-05 Thread Ian Kelly
On Mon, Feb 5, 2018 at 10:13 AM, wrote: > > Hi, I have a problem in continuing the function. > > I'm a beginner, I'm learning from a textbook. I'm going to put the following > examples from a textbook that displays "wrong syntax" It would be very helpful if you would copy/paste the exact error m

Python "Bad syntax"

2018-02-05 Thread darkorbitaknaentou
  Hi, I have a problem in continuing the function.   I'm a beginner, I'm learning from a textbook. I'm going to put the following examples from a textbook that displays "wrong syntax"   for letter in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":             if letter in "AEIOU":                 print(letter, "