Answer:
You'd have to create a "roomdata.txt" file before writing to it.
Step-by-step explanation:
#Python Geometry
lenght = int(input("Enter lenght: "))
width = int(input("Enter width: "))
height = int(input("Enter height: "))
def floor_area(area);
area = 0
area = lenght * width
return area
def room_volume(vol);
vol = 0
vol = lenght * width * height
return vol
print ("Area of floor = ", floor_area, "/n Volume of room = ", room_volume)
f = open ("roomdata.text", "w")
f.write("Area of floor = ", floor_area, "/n Volume of room = ", room_volume)
f.close()