Oops, try again. It looks like the value you printed isn't correct


#1

here is the code
trying to do XOR operation on 0b1110 and 0b101
print int(0b1110 ^ 0b101)

Displaying an output of 11
the error i am getting is
Oops, try again. It looks like the value you printed isn't correct.


#2

please insert link of lesson or name of that and instructions


#3

the link:
https://www.codecademy.com/courses/python-intermediate-en-KE1UJ/1/4?curriculum_id=4f89dab3d788890003000096


#4

print the result of using ^ on 0b1110 and 0b101 as a binary string

that said, your output must a binary string, no an integer.

repalce int with bin to get a binary result


#5

thanks ! it worked !


#6

Please find the below code
class Animal(object):
"""A class that describes various types of Animals."""
def init(self):
pass

it is displaying the below error
Oops, try again. It looks like you didn't add an init() function to your Animal class.

Any one please help in resolving this


#7

please find the link
https://www.codecademy.com/courses/python-intermediate-en-WL8e4/0/3?curriculum_id=4f89dab3d788890003000096#


#8

in instruction is:

define an __init__() function

you defined an init() function


#9

class Animal(object):
"""A class that describes various types of Animals."""
def init(self):
pass


#10

i do not know why underscore is not getting copied
but the definition of init function is correct only

pl suggest any alternate approaches


#11

use code insert optionof editor(preformated text '</>' or ctrl + shift + c) or contain code by this character ``` such as:

```
your codes
```

before it's to late, create a new topic and say the problem in that topic.
good job


#12

class Animal(object):
"""A class that describes various types of Animals."""
def init(self):
pass


#13