0

Error when using else with elif

Using elif and else. I used elif through out and at the end used else but it throws an error. Help pls

13th Jun 2017, 1:42 AM
Robert So
Robert So - avatar
15 odpowiedzi
+ 1
I figured it out. I was just using it incorrectly. Thanks
13th Jun 2017, 2:26 AM
Robert So
Robert So - avatar
+ 1
Just testing. Im not even sure if what Im doing is correct
13th Jun 2017, 2:53 AM
Robert So
Robert So - avatar
0
Try this one
13th Jun 2017, 2:38 AM
Robert So
Robert So - avatar
0
Working now. My internet is choppy right now
13th Jun 2017, 2:42 AM
Robert So
Robert So - avatar
0
Sorry, been using this for just the past 5hrs. Its public now
13th Jun 2017, 2:45 AM
Robert So
Robert So - avatar
0
That code must look like a grade school code! Lol! No coding experience. Just started last week
13th Jun 2017, 2:48 AM
Robert So
Robert So - avatar
0
Thanks!
13th Jun 2017, 2:56 AM
Robert So
Robert So - avatar
- 1
Can we have a link to the code? Maybe the error is not in the use of elif and else. Read the error it may help you discover the problem.
13th Jun 2017, 2:22 AM
Ulisses Cruz
Ulisses Cruz - avatar
- 1
I'm not able to access you code. Did you save it as public?
13th Jun 2017, 2:38 AM
Ulisses Cruz
Ulisses Cruz - avatar
- 1
Same thing. Your profile shows no code also.
13th Jun 2017, 2:41 AM
Ulisses Cruz
Ulisses Cruz - avatar
- 1
You have to turn your code 'public' switch on so that others can see it.
13th Jun 2017, 2:45 AM
Ulisses Cruz
Ulisses Cruz - avatar
- 1
ok now I see it.
13th Jun 2017, 2:46 AM
Ulisses Cruz
Ulisses Cruz - avatar
- 1
Good starting! Really! Just one question, why did you pass the variable 'temp' to input()? Any special reason? Or just testing?
13th Jun 2017, 2:51 AM
Ulisses Cruz
Ulisses Cruz - avatar
- 1
Well, right or wrong depends in what you are trying to do. For testing propose that looks right to me. Keep going. You chose a good language to star with. : )
13th Jun 2017, 2:55 AM
Ulisses Cruz
Ulisses Cruz - avatar