Working on python build travel exercise

However, I think this is more generalized? When I click to submit, I receive the hint to create the first variable, and when I look at the tests list they are all X’s… Then I went to post here about it (in its own spot) and my keyboard only flashes when I try to enter in description box. This leads me to think it’s a bigger issue. I should mention I’ve had this problem before, but retyping usually fixes it. I’ve tried retyping and copy/paste, and even stealing code that was same as mine and pasting, and all is a no go. Any help would be greatly appreciated. (Sorry, I don’t know how else to show my system or screen except print screen, but you can’t play then, correct. )Thanks

MY CODE:

distance_mi = 4

is_raining = True

has_bike = True

has_car = True

has_ride_share_app = True

if distance_mi == 0:

print('False')

elif distance_mi<=1 and is_raining==False:

print('True')

elif distance_mi>1 and distance_mi<=6 and (has_bike==True and is_raining==False):

print('True')

elif distance_mi>6 and (has_car==True or has_ride_share_app==True):

print('True')

else:

print('False')

***PROGRAM RESPONSES***:

Hints== You should have a variable named distance_mi.

Tests==1. You should have a variable named distance_mi.

2. You should assign a number to your distance_mi variable.

Etc though 23

Welcome to the forum @koribear

Please try one of the following steps to move forward.

Click on the “Restart Step” button and force a refresh of your page with CTRL + F5 then try to paste the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.

If everything else works, try with only the first variable.

Happy coding

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