This forum is now read-only. Please use our new forums at discuss.codecademy.com.

The NPR API Forum

View Course

101 points
543051b9548c35f505003d94_751470124
Submitted by
Michael Jannacone
over 3 years ago

18/34 Brain is fried.

I just can't solve this at all. I have read over everything and tried everything. I just need the answer please.. and why. Thank You

This is what I keep getting : You must print the exact error message if both npr_id and search_string are empty.


0 votes

permalink

Hey Michael, can you give us a look at your if/else statement? On the surface, that error seems to be saying that you aren't printing exactly:

You must enter an NPR ID, a search term, or both.

when those two fields are empty. Sometimes the code checker can't figure out how to tell you what you've done wrong so seeing your code will help troubleshoot.

3698 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
over 3 years ago


0 votes

permalink

I don't have an answer but I have the same question as Michael does. I can't see what I am doing wrong and I get the same error message as he does:

////

npr_id = raw_input("Enter comma separated NPR IDs or leave blank. ")

search_stirng = raw_input("Enter your search string or leave blank. ")

feed_title = raw_input("What is your feed title? ")

if (npr_id == True) or (search_string == True): 
    print raw_input("Hit Enter to download your podcast.")
else:
    print "You must enter an NPR ID, a search term, or both." 

////

545 points
3c2b00d8afa060cc07de0c5aaf44dc5a?s=140&d=retro
Submitted by
Michael Reinhard
almost 3 years ago