# Build a Travel Weather Planner - Build a Travel Weather Planner

**URL:** <https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331>\
**Category:** Curriculum Help\
**Tags:** python\
**Created:** [February 12, 2026, 5:41pm UTC](https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331 "2026-02-12T17:41:27Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![hector.hardy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hector.hardy/32/379844_2.png) [@hector.hardy](https://forum.freecodecamp.org/u/hector.hardy)\
**Post date:** [February 12, 2026, 5:41pm UTC](https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331/1 "2026-02-12T17:41:27Z")

</div>

### Tell us what’s happening:

Hello community!  
My code doesn’t run and I don’t know where the mistakes are.  
Thank you in advance for your help.

### Your code so far

```py
distance_mi = 5
is_raining = False
has_bike = False
has_car = True
has_ride_share_app = False

if distance_mi <= 1:
    if is_raining == False:
        print('True')
else:
    print('False')     

if distance_mi > 1 and distance_mi <= 6:
    print('True')    
elif has_bike == True and is_raining == False:
    print('True') 
else:
    print('False')

if distance_mi > 6:
    if has_car == True or has_ride_share_app == True:
        print('True')
else:
    print('False')                   

 

```

### Your browser information:

User Agent is: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.2 Safari/605.1.15`

### Challenge Information:

Build a Travel Weather Planner - Build a Travel Weather Planner

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/python-v9/lab-travel-weather-planner/build-a-travel-weather-planner)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 12, 2026, 5:46pm UTC](https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331/2 "2026-02-12T17:46:15Z")

</div>

what do you mean that it doesn’t run? don’t you see the output in the terminal?

Let’s see the first failing test

> When the distance is `1` mile or less and it is not raining, the program should print `True` .

So let’s set that  
at the top with `distance_mi = 0.5` and `is_raining = False`, and let’s see what get printed:

```txt
True
False
False

```

well, that’s a bit more than `True`, don’t you think that could be an issue?

---

<div class="post-metadata">

**Author:** ![hector.hardy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hector.hardy/32/379844_2.png) [@hector.hardy](https://forum.freecodecamp.org/u/hector.hardy)\
**Post date:** [February 12, 2026, 6:04pm UTC](https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331/3 "2026-02-12T18:04:44Z")

</div>

> [@ILM](#):
>
> well, that’s a bit more than `True`, don’t you think that could be an issu

Sorry it does run and I can see the output in the terminal. The issue is that it gives me some mistakes and I don’t know how to fix them because I don’t see them. For me the code is making what it asks for

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 12, 2026, 6:08pm UTC](https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331/4 "2026-02-12T18:08:57Z")

</div>

did you see the rest of my post? are you sure that `True` and `True False False` are the same thing?

---

<div class="post-metadata">

**Author:** ![hector.hardy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hector.hardy/32/379844_2.png) [@hector.hardy](https://forum.freecodecamp.org/u/hector.hardy)\
**Post date:** [February 13, 2026, 12:53pm UTC](https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331/5 "2026-02-13T12:53:47Z")

</div>

Ohhh I see!  
Now my code looks like this and I still can’t solve the issue.

```python
distance_mi = 5

is_raining = False

has_bike = False

has_car = True

has_ride_share_app = False

if distance_mi <= 1:

print('True')

if distance_mi > 1 and distance_mi <= 6:

print('True')

if distance_mi > 6: 

print('True') 

elif has_car == True: 

print('True')

elif has_ride_share_app == True:

print('True')      

elif has_bike == True: 

print('True')

elif is_raining == False:

print('True') 

elif is_raining == False:

print('True')                

else:

print('False')

```

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 13, 2026, 12:54pm UTC](https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331/6 "2026-02-13T12:54:15Z")

</div>

are you srue that’s your code? the indentation is not valid

---

<div class="post-metadata">

**Author:** ![hector.hardy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hector.hardy/32/379844_2.png) [@hector.hardy](https://forum.freecodecamp.org/u/hector.hardy)\
**Post date:** [February 13, 2026, 12:55pm UTC](https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331/7 "2026-02-13T12:55:18Z")

</div>

```python
distance_mi = 5
is_raining = False
has_bike = False
has_car = True
has_ride_share_app = False

if distance_mi <= 1:
    print('True')
    if distance_mi > 1 and distance_mi <= 6:
        print('True')
        if distance_mi > 6: 
            print('True') 
        elif has_car == True: 
            print('True')
        elif has_ride_share_app == True:
            print('True')      
    elif has_bike == True: 
        print('True')
    elif is_raining == False:
        print('True') 
elif is_raining == False:
    print('True')                
else:
    print('False')

```

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [February 13, 2026, 12:57pm UTC](https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331/8 "2026-02-13T12:57:22Z")

</div>

let’s follow the logic, so the first condition checked is

> [@hector.hardy](#):
>
> `if distance_mi <= 1:`

which is `False`, it’s not entered, so now it goes here:

> [@hector.hardy](#):
>
> `elif is_raining == False:`

these are never going to be reached

> [@hector.hardy](#):
>
> ```auto
> if distance_mi > 1 and distance_mi <= 6:
> print('True')
> if distance_mi > 6: 
> print('True') 
> 
> ```

---

<div class="post-metadata">

**Author:** ![hector.hardy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/hector.hardy/32/379844_2.png) [@hector.hardy](https://forum.freecodecamp.org/u/hector.hardy)\
**Post date:** [February 13, 2026, 1:19pm UTC](https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331/9 "2026-02-13T13:19:55Z")

</div>

I got it!!! Finally

```python
removed

```

---

<div class="post-metadata">

**Author:** ![pkdvalis](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/pkdvalis/32/350571_2.png) [@pkdvalis](https://forum.freecodecamp.org/u/pkdvalis)\
**Post date:** [February 13, 2026, 1:27pm UTC](https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331/10 "2026-02-13T13:27:05Z")

</div>

Congratulations on solving the challenge! You should be proud of your achievement…we are! But we are removing your working solution, so it is not available to others who have not yet done the work to get there. Again, congrats!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [March 13, 2026, 1:27pm UTC](https://forum.freecodecamp.org/t/build-a-travel-weather-planner-build-a-travel-weather-planner/778331/11 "2026-03-13T13:27:31Z")

</div>

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