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 7849403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:30:27+00:00 2026-06-02T18:30:27+00:00

Forgive my ignorance, I am new to Python and I can’t seem to find

  • 0

Forgive my ignorance, I am new to Python and I can’t seem to find the answer on Google. Perhaps I’m just not searching the right keywords.

I have a basic function as follows:

class Basic(object):
    def Process(*values):
        for i in range(len(values)):
            value = int(values[i])
            print value

b = Basic()
b.Process(4, 5, 6)

I’m getting the following error:

TypeError: int() argument must be a string or a number, not ‘Basic’

I’m sure it is something simple, but any help would be appreciated.

Thanks

  • 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-02T18:30:29+00:00Added an answer on June 2, 2026 at 6:30 pm

    You forgot to give self as an argument to Process:

    def Process(self, *values):
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please forgive my ignorance, but I wasn't able to find an answer elsewhere. I
I'm new to Python so forgive my ignorance If I don't have all the
Please forgive my ignorance I am new to Python development. Is there a tool
I'm very new to lftp, so forgive my ignorance. I just ran a dry
Please forgive the ignorance, but I'm very new to PHP and I couldn't find
Forgive my ignorance, but I am somewhat new to shell scripting and the use
New to all this so forgive my ignorance. I am trying to figure out
I'm new to Rails, so forgive my ignorance of ActiveRecord. One of my models
I am very new to javascript, so forgive me for my ignorance. I am
I am a brand new programming student, so please forgive my ignorance. My assignment

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.