So Currently my output is this
It's returning it as a string however I want it to return with a tuple with 5 items. The lastname and other names being a different area when I use return(tuple(lecturerinfo)) it gives me this
Any suggestions is a appreciated
def part1(lecturerinfo):
return (lecturerinfo)
part1_list = input('please enter employ information')
mytup = ()
if __name__ == "__main__":
mytup = part1(part1_list)
print(mytup)
Aucun commentaire:
Enregistrer un commentaire