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

  • SEARCH
  • Home
  • 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 8600371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:36:08+00:00 2026-06-12T01:36:08+00:00

Question 1. When I run the code ( http://codepad.org/kAADoUks ), I get an error

  • 0

Question
1. When I run the code (http://codepad.org/kAADoUks), I get an error that 1 argument is missing for the line 129.
“question, answer = convert(snippet, phrase)”

I checked the code umpteen times, but I don’t know how to fix it.
What am doing wrong?

  1. How does Python know that the code can accept more than 2 arguments on the commandline

  2. Is convert(snippet, phrase) a pre-defined Python function?

  3. What are these signs “###”, “*“? How are they called in Python?
    are they placeholders?

  4. “snippet” is not declared in the code as the population/list WORDS.
    How does Python interpreter know that “snippet” refers to the list WORDS?
    Is “snippet” a special Python built-in element?

  5. “for i in range(0, snippet.count(“@@@”)):” (line 75)
    There are no “###”, ““, “@@@” signs in the URl FILE:
    How is Python interpreter able to count the number of “###” or “
    ” when there are none in the source file?

  6. How does the code in line 85 work?
    “for sentence in snippet, phrase:”
    Is “sentence” looping through 2 different list?
    I don’t see anywhere in the code that “snippet” and “phrase” are defined as lists.

  7. The variables “question” and “answer” have the same values. What is the purpose of the if-clause in line 135?

  • 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-06-12T01:36:09+00:00Added an answer on June 12, 2026 at 1:36 am

    Learn code the hard way.

    Isn’t it all in the name already?

    to answer some of your questions in the spirit of good will:

    1. python doesn’t know, the code in question should and sort of does
      check number of arguments

    2. no, convert is not a pre-defined function in Python

    3. “#” is a number sign, also called hash key, they are used for
      comments in Python, but in this case they are just part of string
      data, I suppose it’s your homework to fill in these.

    4. snippet is not any special name in Python

    5. your job to figure out I suppose

    6. code on line 85 loops through only 2 items, snippet and phrase, code
      like for i in x, y: foo(i) is just shorthand for foo(x); foo(y).
      you are correct that in this case it’s kindof bogus. I suppose it’s
      your homework to correct this code so that it actually does
      something useful. it’s called learn code the hard way for a reason,
      right?

    7. huh? 135 or 137?

    8. the exception that you did not ask about, most likely it was a
      temporary network error, I don’t get exception like that.

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

Sidebar

Related Questions

Feel free to run the codes here: http://codepad.org/SAOaOABn Code: <?php $time = time(); echo
We run code from adress 8002000 to 80020028 and the question is what is
Basically the question is how do I run gpgpu code in a Metro app.
Prescript: The amazing etherpad was recently open sourced. Get it here: http://code.google.com/p/etherpad . This
When I run the code from page 71, eclipse showed me some error: 11-17
Here's a self-contained application you can run that illustrates my question. When using a
I received this source code: http://www.sbbic.org/split.zip under the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0 It came
I've managed to run the code in this question here properly in a test
Very green question here. I built a simple blog following the instructions here http://guides.rubyonrails.org/getting_started.html
I have a question regarding the online Google cloud lab @ http://code.google.com/apis/sql/docs/developers_guide_java.html at the

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.