210338jim
Posts: 11
Joined: Mon Feb 05, 2018 10:06 pm

ifel

Sat Nov 17, 2018 9:18 am

Getting "invalid syntax"" message when entering "ifel" - would have thought this was an established module - does it have to be saved as a module first by entering "ifel = if else" first before saving as a module?
Jim McGouldrick

User avatar
rpdom
Posts: 17174
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: ifel

Sat Nov 17, 2018 9:41 am

It might help if you give some context.

What language or editor are using for "ifel"? It's not one I recognise.

What do you mean by "module"?

210338jim
Posts: 11
Joined: Mon Feb 05, 2018 10:06 pm

Re: ifel

Sat Nov 17, 2018 9:55 am

Thanks - am using python idle 3 -from Raspberry Pi Book "The Beginners' Guide
Jim

210338jim
Posts: 11
Joined: Mon Feb 05, 2018 10:06 pm

Re: ifel

Sat Nov 17, 2018 10:03 am

Sorry, got mixed-up -ifel should have read elif word_length == 3:
My further apologies for wasting your time
Jim

User avatar
rpdom
Posts: 17174
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: ifel

Sat Nov 17, 2018 12:07 pm

210338jim wrote:
Sat Nov 17, 2018 10:03 am
Sorry, got mixed-up -ifel should have read elif word_length == 3:
My further apologies for wasting your time
Jim
Glad you got it fixed and thank you for letting us know :)

Return to “Beginners”