Phone book list formatting
I have a lot of trouble trying to figure this out.
I have seen lots of people show complex (complex for me) ways of fixing
these columns but i have no idea how i could do it in this, as i am using
a dictionary.
Any way, here's the code:
elif menu==2:
print("NAME=================PHONE NUMBER===")
for x in book.keys():
s=1
p=s+1
print(str(p)+")",x,"\t\t",book[x])
s=p
Also if there is anything else i am doing that could be more efficient,
please tell me as i am very new to python. And i can give you more code if
needed.
Thanks,
Leo
No comments:
Post a Comment