User Profile

Collapse

Profile Sidebar

Collapse
danne123
danne123
Last Activity: Nov 26 '06, 06:04 PM
Joined: Sep 13 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • danne123
    replied to I need some help, please
    hi

    thanks for the answers but what I'm trying do do is that I have a file with the first name, last name, birth day, adress and phonenumber written on seperate lines. Then I have read the information into a list. and then I want user to be able to type in the last name of the person they want to delete and then the person with all the information about birth day, adress and phone number should also be deleted from the list and from...
    See more | Go to post

    Leave a comment:


  • danne123
    started a topic I need some help, please

    I need some help, please

    Hi

    I'm trying remove a person from a list but it's not working.
    How can I make it work, please help me.

    def RemoveName(self ):
    lastname = raw_input("Ente r the last name of the person you want to remove ")
    for i in list_1:
    if lastname == i.lastname:
    list_1.remove(i )
    print "Removed", i.name, i.lastname
    ...
    See more | Go to post

  • danne123
    started a topic Please help me

    Please help me

    Hi,

    I want the program to ask how many players that is in the game, and then depending on what number you wrote it's going to ask for every players name.

    I think there's something wrong in the for loop. How do I make it work??


    def numberOfPlayers ():
    a = raw_input("How many players are you? ")

    number = numberOfPlayers ()



    def players():...
    See more | Go to post

  • danne123
    replied to I need some help please
    Thank you!...
    See more | Go to post

    Leave a comment:


  • danne123
    started a topic I need some help please

    I need some help please

    Hi

    When I run this program it's suppose to say "name" got and the number but it says "name" got and the number and then None. Why does it say None and have do I get it not to say it?


    print " Welcome"

    def name():
    name = raw_input("What s your name? ")
    return name

    player1 = name()
    player2 = name()

    import...
    See more | Go to post
No activity results to display
Show More
Working...