so “not” operator inverts boolean value right?
and chatgpt is giving me this
also some youtuber is using this logic
and I cant understand this so anyone help me
like if is_raining is true after writing not behind it then why dont u need umbrella if its raining
am i just dumb/tired or is it really this hard
is_raining = False
if not is_raining: # not False is True
print(“You don’t need an umbrella.”) # This line executes.
else:
print(“Take an umbrella.”)
i did nothing its just theory
vaniko mdinaridze is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.