Run not working in Python


#1

Trying to run python code . When i click run , the run button runs but nothing happens . Tried all kind of Codes still Run won’t work. Tried different PC’s still same result.
The code i tried at last :

def plane_ride_cost(city):
if city == “Charlotte”:
return 183
elif city = “Tampa”:
return 220
elif city = “pittsburgh”:
return 222
else:
return 475 .
Help Needed !


#2

Typo on `pittsburgh’ (should be capitalized).

This function should not have a default (else). It should be,

elif city == "Los Angeles":

#3

2 posts were split to a new topic: Entire lesson worked just fine until the last 2 steps


#4

The correction of the code is right, but it still doesn’t help the problem, that the code doen’t run. I’ve got the same problem, the code is definetly correct, but nothing happens, when I click “Run”. When I try the reset the workspace the error 1/sctipt.py has been moved. I already filed a bug report couple of days ago but nothing happens and I can’t continue the course whichh is quite annoying.


#5

I have the same problem with take a vacation. I have already filed a bug reported three times and still the same problem.


#6

To make it work, you must:

  1. Save your work
  2. Reload the page
  3. You are done!

#7

Have tried it. Does not work.


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.