Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nameSB = ['s', 'p', 'd', 'f']
- valueSB = [2,6,10,14]
- paulling = "1s2s2p3s3p4s3d4p5s4d5p6s4f5d6p7s5f6d7p"
- z = int(input("digite o número Z do átomo.:"))
- print("Sub-níveis.:\tElétrons.:")
- while z > 0:
- for i in range(0, len(paulling), 2):
- subnivel = valueSB[nameSB.index(paulling[i+1])]
- print(paulling[i],"",paulling[i+1], " \t\t", end='\t')
- if z > subnivel
- z-=subnivel
- print(subnivel)
- else
- print(z)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement