DEV Community

Peter Harrison
Peter Harrison

Posted on

True or False

What is the result?

day = 5
if not (day != 5) != (not (day == 5)):
    print("True")
else:
    print("False")
Enter fullscreen mode Exit fullscreen mode

Top comments (6)

Collapse
 
cheetah100 profile image
Peter Harrison

Looks like my AI tag was removed. The code was generated by AI, by ChatGPT, as an example of how it can be used for evil, in this case by making code more complex. Sadly artificial intelligence is better than human now....

Collapse
 
michaeltharrington profile image
Michael Tharrington

I'll get ya covered here!

Collapse
 
michaeltharrington profile image
Michael Tharrington

Sorry your tag was removed... I just added it back. And appreciate you sharing the context, it's super interesting and maybe a wee bit scary how good AI is at mimicking humans!

So, we don't have this guide front and center enough right now, but we did write up some guidelines for sharing AI-assisted articles on DEV that I'd recommend to ya:

While this isn't necessarily a traditional bot-written article, if you are using ChatGPT to write content, just know that we ask folks to please disclose it in some way. We have a tag called #ABotWroteThis that you can use for any content that applies in the future.

Anywho, thanks for sharing this post and hope you have a good one!

Collapse
 
michaeltharrington profile image
Michael Tharrington

Hmmm.. is it not not true?

Collapse
 
cheetah100 profile image
Peter Harrison

I guess a little context: I created this with chatGPT by asking it to make a very basic evaluation into something complex and difficult to understand. It is another example of how chatGPT understands abstract things. Usually I ask it to make code better.

Collapse
 
michaeltharrington profile image
Michael Tharrington

Interesting! This is a cool spin on things.