Share your repls and programming experiences

← Back to all posts
#WEEKLY 5 the second
h
Codemonkey51 (794)

disclaimer: THIS IS NOT MY SUBMISSION THAT IS HERE

ok so this is my other way that's like 7 lines longer but still cool

EDIT: this is now my submission!

Commentshotnewtop
CodingCactus (2784)

@Codemonkey51 cool, although you could just do

num1,num2=input("Enter first number: "),input("Enter second number: ")
if num1 is num2:print("They are equivalent")
else:print("They are not equivalent")

hehe
:)

Codemonkey51 (794)

That wouldn't work is comapres memory location idot @CodingCactus

CodingCactus (2784)

i didn't know how it works

CodingCactus (2784)
num1,num2=input("Enter first number: "),input("Enter second number: ")
if num1 in num2 and num2 in num1:print("They are equivalent")
else:print("They are not equivalent")

works