+ 6

Can anybody tell me how to find the electronic configuration of any element using python language?

11th Oct 2018, 1:54 AM
Divyanshu Singh
Divyanshu Singh - avatar
6 Respuestas
+ 2
yes I know
11th Oct 2018, 12:42 PM
Divyanshu Singh
Divyanshu Singh - avatar
+ 2
orbitals.
11th Oct 2018, 2:21 PM
Divyanshu Singh
Divyanshu Singh - avatar
+ 2
Thanks 😊
11th Oct 2018, 3:35 PM
Divyanshu Singh
Divyanshu Singh - avatar
+ 1
Shells or orbitals? Do you know how to do it without python?
11th Oct 2018, 2:05 AM
Schindlabua
Schindlabua - avatar
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.
11th Oct 2018, 3:24 PM
Schindlabua
Schindlabua - avatar
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
16th Oct 2018, 10:18 AM
Precious
Precious - avatar