I'm working on understanding how to use the delimiter function with CSV. The code below is what I have so far, but what I am trying to do is to get each item in a separate cell for the CSV file. I tried this [example](https://stackoverflow.com/questions/13405485/undestanding-csv-module-delimiter)...

```
import csv
import datetime
# imports modules

now = datetime.datetime.now()
# define current time when file is executed

how = str(raw_input("How are you doing?"))
why = str(raw_input("Why do you feel that way?"))
scale_of_ten = int(raw_input("On a scale of 1-10. With 10 being happy and 1 being sad. How happy are you?"))
#creates variables for csv file

x = [now.strftime("%Y-%m-%d %H:%M"),how,why,scale_of_ten]
# creates list for variables to be written in

f = csv.writer(open("happy.csv","wb"))
# creates f which makes a happy.csv type wb
w = csv.writer(f, delimiter = ',')
w.writerow([x])

```

I get this error below from running the code:

```
Traceback (most recent call last):
 File "journal.py", line 18, in <module>
    w = csv.writer(f, delimiter = ',')
TypeError: argument 1 must have a "write" method

```

How would I get my inputs into separate cells instead of one?