Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJohn Lamb
1,334 Pointscan't get passed
I don't know what part of my code is wrong and the "Bummer! Try again!" doesn't help guide me at all. There are no hints to what I am doing wrong.
2 Answers
Maciej Czuchnowski
36,441 PointsYou will find lots of hints here in our responses:
https://teamtreehouse.com/forum/stage-3-logical-operators-ruby
Also, show us your code so that we can see where you are and where to guide you.
John Lamb
1,334 Pointsdef check_speed(car_speed) # write your code here if (car_speed >= 40) && (car_speed <=50) return "safe" end end
this eventually worked for me.
I was originally trying with
def check_speed(car_speed) if car_speed >= 40 && car_speed <= 50 return check_speed = "safe" end
I didn't know I needed two ends. And the return was confusing to me.
Thank you so much for your help.
John Lamb
1,334 PointsJohn Lamb
1,334 PointsI can't get passed the first operators and control structures