Share your repls and programming experiences

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

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!
https://repl-post-tracker.codemonkey51.repl.co/track/heaiulfhe
https://repl-post-tracker.codemonkey51.repl.co/view/heaiulfhe

Comments
hotnewtop
CodingCactus (4185)

@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 (1049)

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

CodingCactus (4185)

i didn't know how it works

CodingCactus (4185)
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