Exercise reset causes run to be stuck in its loading state


#1

After resetting my progress for this exercise I found that anytime I tried to run something, the run button would be stuck in a constant loading state, which would stop me from advancing. Any help with this would be appreciated.


#2

@librarianofthearcane Same!!!


#3

@arzubeste think it’s something to do with Codeacademy’s recent revamp of all its courses


#4

@librarianofthearcane is it with a specific exercise? I am stuck on ‘planning your trip’ exercise.


#5

Hello @madwho, @arzubeste, @librarianofthearcane,

Ever since the Python course got moved, the move caused some bugs to happen throughout the lessons. Codecademy is working on the issue. :slight_smile:

Sorry for the inconvenience.


#6

Thanks for the update. Do you know/have an estimate when it will be up and running?


#7

I don’t have an estimate; all I know is that Codecademy is working on the problem. We will let you guys know when the problem is fixed. :slight_smile:


#8

help me with this code
def hotel_cost(nights):
return 140 * nights

def plane_ride_cost(city):
if city == “Charlotte”:
return 183
if city == “Tampa”:
return 220
if city == “Pittsburgh”:
return 222
if city == “Los Angeles”:
return 475

def rental_car_cost(days):
rent = 40 * days
if days >= 7:
rent = rent - 50
elif days >= 3:
rent = rent - 20
return rent

def trip_cost(city, days, spending_money):
return hotel_cost(days) + plane_ride_cost(city) + rental_car_cost(days) + spending_money

print trip_cost(“Los Angeles”, 5, 600)


#9

@echo4 The ifs and returns need to be indented


#10

Same issue here. Extremely frustrating!


#11

@librarianofthearcane please help me with that


#12

Here you go! Remember that all code in python needs to be indented properly otherwise it will not run.

def hotel_cost(nights):
return 140 * nights

def plane_ride_cost(city):
if city == ‘Charlotte’:
return 183
elif city == “Tampa”:
return 220
elif city == “Pittsburgh”:
return 222
elif city == “Los Angeles”:
return 475

def rental_car_cost(days):
if days >= 7:
return days * 40 - 50
elif days >= 3:
return days * 40 - 20
else:
return days * 40

def trip_cost(city, days, spending_money):
return rental_car_cost(days) + hotel_cost(days) + plane_ride_cost(city) + spending_money


#13

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