Help 3/19


#1

help me pls plsplsplsplpspslsplsplpslp


#2

Hi @cloudslayer68982,

What is your problem exactly?

If you want you can post your code here using the following trick:

Whenever you would like to paste code, since this forum supports Markdown you can use three backticks before and after your code block like so:

```
def my_func(x):
my_var = 0
if x > my_var:
sum = my_var + x
else:
print "Odelay!"
return sum
```

and it will retain proper indentation and even have nifty syntax highlighting:

def my_func(x):
    my_var = 0
    if x > my_var:
      sum = my_var + x
    else:
      print "Odelay!"
    return sum

#3

honestly i have no idea how to code im in a class called advanced computer
tech and something else its a long name but here is my code so far

def hotel_cost(nights):
cost = 140 * nights
return (cost)
def hotel_cost(nights):
nights == 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):
cost = 40 * days
if days >= 7:
cost -= 50
return cost
elif days >= 3:
cost -= 20
return cost
else:
return cost


#4

Hi @cloudslayer68982,

Make sure you post your entire code using the trick I described in my reply above. It will help me help you!

Also, make sure you paste the error message you are getting. Thanks! :smile: