Ive been struggling with this for 2 hours now ,PLEASE HELP

Ive been stuck on the "bulid a travel weather planner" question for ages and i cant seem to figure out what is required ,i know im doing something thing wrong ,but i dont know what

I saw someone ask about this a few days ago but i still didnt get the answer in the comments.

Heres my code:

distance_mi = 0

is_raining = True

has_bike = False

has_car = False

has_ride_share_app = True

if distance_mi == 0:

print('False')

else:

print('True')

if distance_mi >= 1 and is_raining == False:

print('True')

else:

print:('False')

if 6 > distance_mi > 1:

print('True')

elif is_raining == True and has_bike == False:

print('False')

else:

print('False')

if distance_mi > 6 and has_ride_share_app == True:

print('True')

if distance_mi > 6 and has_car == True:

print('True')

if distance_mi > 6:

print('True')

elif has_car == False and has_ride_share_app == False:

print('False')

else:

print('True')

I feel like it's wayyy, to long but i dont know what to remove

Posted Mar 5, 2026, 11:42 AM UTC

32
Loading comments…