Python Forum
Problem witrh else and elif values.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem witrh else and elif values.
#4
First of all thanks for your answeres guys !
But even if('i copy paste') you code it still doesn't work ! :( :(
When i type elif or else python reconyze the function but when i type enter
the red message appears agin and again :O That stuff is weird :D
SOS !
Ano

Oh dam yes i found the answere !
For those who are interested :
after the command IF i say print something,
and at this moment i press enter, and then the tiping line goes down.

at this moment i want to type elif but it doesn't work and if i press enter again : >>> will appear again which means that python wait for a new command.
So the thing to do is just to press left arrow once to align the IF , ELIF, and ELSE command so that python understand that THESE are answeres to the IF.

ANOLIBAL
Reply


Messages In This Thread
Problem witrh else and elif values. - by anolibal - Oct-03-2016, 05:14 AM
RE: Problem witrh else and elif values. - by anolibal - Oct-03-2016, 04:31 PM
RE: Problem witrh else and elif values. - by nilamo - Oct-03-2016, 04:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem adding keys/values to dictionary where keynames = "property" and "value" jasonashaw 1 2,060 Dec-17-2019, 08:00 PM
Last Post: jasonashaw
  Whats the right way to refactor this Big if/elif/elif ? pitosalas 1 2,260 Jul-28-2019, 05:52 PM
Last Post: ichabod801
  Problem with elif statement Haddal99 2 2,288 May-20-2019, 09:26 AM
Last Post: avorane
  if elif problem :) Runer 2 2,350 Apr-22-2019, 01:57 PM
Last Post: Runer
  problem returning values Naito 7 3,820 Jan-19-2019, 08:21 PM
Last Post: Naito
  Problem with sum of values from .txt file PathhK 2 2,594 Jan-07-2019, 07:40 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020