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...
User Profile
Collapse
-
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
... -
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():... -
-
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...
No activity results to display
Show More
Leave a comment: