Explore
Connect
Documentation
Snippets
Log in
Sign up
1
2
3
4
5
6
7
8
9
10
11
class
Element:
'''Represents an element in the periodic table.'''
pass
na = Element()
na.atomic_number =
11
na.name =
'Sodium'
print(
f
'Atomic Number:
{na.atomic_number}
; Name:
{na.name}
'
)
Enter to Rename, Shift+Enter to Preview
Run