User Profile

Collapse

Profile Sidebar

Collapse
sirdeltalot
sirdeltalot
Last Activity: Jan 20 '19, 12:47 PM
Joined: Jun 28 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sirdeltalot
    replied to User input and classes
    Thanks for you're help, but another problem has popped up-when i print a list (with things added to it) i just get
    Code:
    <__main__.Person instance at 0x11bd5a8>
    only telling me where it is, not what it is. How do i modify your code to make it append an item i can print off?
    Thanks
    Iz
    See more | Go to post

    Leave a comment:


  • sirdeltalot
    replied to User input and classes
    Thanks. LOL, so obvious once your told it, ah well, my mind doesn't work as logically as that.
    See more | Go to post

    Leave a comment:


  • sirdeltalot
    started a topic User input and classes

    User input and classes

    Hi,
    I'm learning python and i'm in the process of trying to write an adress book program. I'm using a class to do it all and i'm hopeless at oop. Heres a bit of code:

    Code:
    run = 1
    class Person: 
        pop = 0
        def __init__(self, name): 
            self.name = name
            Person.pop +=1
        def sayHi(self): 
            print 'Hello, my name is', self.name
        def countPeople(self):
    ...
    See more | Go to post

  • sirdeltalot
    replied to Pickleing
    That's realy helpful,
    Thanks!
    See more | Go to post

    Leave a comment:


  • sirdeltalot
    started a topic Pickleing

    Pickleing

    Hi
    I'm a total beginner in python.
    Want i want to know is how to pickle a dictionary after a user has updated it then read back from the pickled file.
    Thanks
    Iz
    See more | Go to post

  • sirdeltalot
    replied to EOF in multi line statement!!??
    I found out the problem-i'd forgotten to close a pair of double brackets lol.
    BTW-why does this error stem from that?
    See more | Go to post

    Leave a comment:


  • sirdeltalot
    started a topic EOF in multi line statement!!??

    EOF in multi line statement!!??

    Hi
    I keep on getting an errror saying 'EOF in multi-line statement' when i run my code. I'm just learning python and it keeps getting in the way. What could be the cause of the error?
    Thanks
    Iz
    See more | Go to post
No activity results to display
Show More
Working...