mercredi 29 octobre 2014

Python Loops Help Please


Vote count:

0




I'm new at this so I don't know why my code is not working. If you could help fix and explain what I did wrong, it would be so much appreciated! Cheers! :)



def copy_me(list_input):
count = 0
new_list = []
for list_input in new_list:
if (list_input.isalpha()):
list_input.upper()
count += list_input
elif (list_input.isdigit()):
list_input = list_input + 1
count += list_input
elif (list_input.islist()):
list_input = "List"
count += list_input

return count





asked 1 min ago

Wee

1






Python Loops Help Please

Aucun commentaire:

Enregistrer un commentaire