I want a code which compares multiple integer values for one value and therefore it returns a list as an output with the appended values
FOR EXAMPLE:
x = 10
y = 11
z = 13
mylist = []
if x or y or z == 10 :
mylist.append("C")
if x or y or z == 11 :
mylist.append("C++")
if x or y or z == 2 :
mylist.append("JAVA")
if x or y or z == 13 :
mylist.append("PYTHON")
if we take like this
finally it should return a list like
["C","C++","PYTHON"]
it will give