Enter the following code into a text file, or an input cell in a worksheet:
# Create an empty class to use as a data structure class Struct(): pass # Use pass to define empty methods class VTOL(): """Class to represent airborne vehicles with VTOL (Vertical Take-Off/Landing) capabilities, such as helicopters, tilt-rotors, and Harrier jump jets. """ def __init__(self): pass def move(self, horizontal_angle, vertical_angle, distance): pass data_container = Struct() data_container.name = "String data" data_container.count = 14 data_container.remainder = 0.1037 print(data_container.name) print(data_container.count) print(data_container.remainder)
The output should look like this:
sage: load 4460_9_8.py String data 14 0.1037