Skip to content
← Back to Community
#WEEKLY 5 the second
Profile icon
h
has Hacker Plan
Codemonkey51

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

Voters
Profile icon
Codemonkey51
Comments
hotnewtop
Profile icon
TheDrone7

SCORED.

Profile icon
CodingCactus

hrmmm
image

Profile icon
Codemonkey51

Lol let me fix this @CodingCactus

Profile icon
Codemonkey51

I fixed it :) @CodingCactus

Profile icon
CodingCactus

@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
:)

Profile icon
CodingCactus

oops, disregard that

Profile icon
Codemonkey51

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

Profile icon
CodingCactus

@Codemonkey51 ssshhhhhh

Profile icon
CodingCactus

i didn't know how it works

Profile icon
CodingCactus
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

Profile icon
CodingCactus

IM STUPID

YAY

Profile icon
Codemonkey51