Welcome to the Treehouse Community
Looking to learn something new?
unsure if I'm doing any of this right
def check_speed(car_speed) if (car_speed >= 40) && (car_speed < = 50) return "safe" else return "unsafe"
Maximiliane QuelCourses Plus Student 55,489 Points
You are missing the condition of the second part where you are setting the case for less than or equal to 50. You are also missing the end keyword in your if else block:
def check_speed(car_speed) # write your code here if car_speed >= 40 && car_speed <= 50 return "safe" else return "unsafe" end end
the return keyword is optional
Thanks for the help.