Name can be undefined problem

name = “Christian”

print (f"Hello {name}")

is_online: True

if is_online:
print (“you are online”)
else:
print (“you are offline”)

“if is_online:” is the undefined error im getting in pycharm

im following a youtube video and it works just fine for him, idk whats happening.

Change is_online: True to is_online = True

:facepalm:

thank you