+ 6
Can anybody tell me how to find the electronic configuration of any element using python language?
6 Respuestas
+ 2
yes I know
+ 2
orbitals.
+ 2
Thanks 😊
+ 1
Shells or orbitals? Do you know how to do it without python?
0
I would create a list of all the orbitals in the order in which they are filled and how many electrons they can take.
orbitals = [
("1s", 2),
("2s", 2),
("2p", 6),
...
]
You'll also need to read `totalNumberOfElectrons` from the user.
Then you can step through your list like
for (orbital, electrons) in orbitals:
# do things
....
And you keep printing the orbital names, and subtract the electron amount from the total (like `totalNumberOfElectrons -= electrons`) until you run out of electrons and can't fill any more orbitals.
0
Divyanshu Singh whenever you're through developing the program please comment or signify on this discussion, I'm quite confused at Schindlabua's explanation. Thanks