Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1054793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:27:41+00:00 2026-05-16T17:27:41+00:00

please excuse me for simple question: i tried to write simple csv file using

  • 0

please excuse me for simple question: i tried to write simple csv file using csv module. however, the result is this:

Spam |Baked Beans|
/ s e a r c h | | , | | A d v a n c e d | | S e a r c h
/ a b o u t / | | , | | A b o u t
/ n e w s / | | , | | N e w s
/ d o c / | | , | | D o c u m e n t a t i o n
/ d o w n l o a d / | | , | | D o w n l o a d
/ c o m m u n i t y / | | , | | C o m m u n i t y
/ p s f / | | , | | F o u n d a t i o n
/ d e v / | | , | | C o r e | | D e v e l o p m e n t
/ a b o u t / h e l p / | | , | | H e l p

the code i use is:

spamWriter = csv.writer(open('links.csv', 'w'), delimiter=' ',quotechar='|', quoting=csv.QUOTE_MINIMAL)
spamWriter.writerow(['Spam']  + ['Baked Beans'])
spamWriter.writerow(self.linkvalue + ' , '  + data)

linkvalue and data are two variables that hold some data.

thank you for your advice!!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T17:27:42+00:00Added an answer on May 16, 2026 at 5:27 pm

    writerow‘s argument is a sequence… and a string, which is what you’re passing, is a sequence of single characters. To fix your bug, in the 2nd call to writerow, pass, instead, [self.linkvalue, data] as the argument.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am being thick this morning so please excuse this simple question - I
I am just getting into javascript and d3.js. Please excuse the simple question, but
Please excuse the noob-ish nature of this question. I have a project in which
I'm new to this so please excuse my presumably simple questions. Hope you'll be
Please excuse me for a probably low quality of this question, since I'm not
I'm new to MVC and php framework, so please excuse me for this simple
Please excuse me if this is something simple I am overlooking. I am making
Please excuse me if this is a very simple solution or stupid mistake -
Please excuse me if I'm simple here, I want to create a simple widget
Please excuse my newbie Question. I'm tryin to display data from a mysql table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.