import turtle jane = turtle.Turtle() jane.forward(20) print(jane.x) The attribute is
Answers
'x' is the name of jane's attribute referred in the given code.
Given code :
import turtle
jane = turtle.Turtle()
jane.forward(20)
print(jane.x)
Attribute is nothing but the instance of a class. Here, the turtle's object 'jane' is accessing its attribute x. In reality, we didn't create that attribute, so it will raise an Error.
Explanation of code :
- Coming to the complete code, we have imported the turtle library and created a turtle object with the variable name 'jane'
- jane.forward(20) moves forward the turtle object by 20 pixels on Turtle screen.
- In the next line, Jane tries to access its attribute x, which isn't yet created.
Learn more :
1) What is the output Of kill 9042018?
brainly.in/question/13538278
2) Given the following permutation of a,b,c,d,e,f,g,h,i,j, what is the next permutation after 'eibjdhgfca', in lexicographic (dictionary) order?
brainly.in/question/12375223
Explanation:
QUESTION:
What is the mass number of an atom with 6 protons and 8 neutrons?
Answer:
Explanation:
✑ First, Let's explore about ATOMIC MASS :
↱ An atom consists of electrons , protons and neutrons. The mass of electron is extremely small and it is taken as a negligible mass compared to the mass of a proton or neutron. Thus , The atomic mass is defined as the sum of the number of protons and neutrons present in the nucleus of an atom of that element. If is also called atomic weight. It is denoted by A. The nucleus determines the mass of an atom, while the number of electrons determines the size of the atom of the element.
Mathematically,
Atomic mass = Number of protons + Number of neutrons
i.e
———————————————————————
✎ Now , Let's find the atomic mass of atom having 6 protons and 8 neutrons :
☞ Atomic mass = No. of protons + No. of neutrons
➵ Atomic mass = 6 + 8
➵ Atomic mass =
And we're done !
Hope I helped!
Have a wonderful day! ツ
▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁