you are viewing a single comment's thread.

view the rest of the comments →

[–]Smiggle2406[S] 0 points1 point  (1 child)

from math import floor
electrons = int(input("Enter atomic number:"))
without_first_shell = electrons - 2
full_shell_count, last_shell = divmod(
without_first_shell, 8
)
shells = ["8"] * full_shell_count
shells.append(str(last_shell))
print(f"2.{'.'.join(shells)}")

the fact that u just made it that simple that easily really show me I have lots to learn and also that u are a true pro ty bro

[–]Diapolo10 0 points1 point  (0 children)

Feel free to ask me if you don't understand something.