thanks
--
http://mail.python.org/mailman/listinfo/python-list
jolly wrote:
> hey guys,
>
> When i try to run my code I get an error. NameError name 'main is not
> defined'
>
> [code]
> if __name__ == "__main__":
> main()
Put this at the end of the file. Currently, it is getting executed before the
code th
hey guys,
When i try to run my code I get an error. NameError name 'main is not
defined'
[code]
if __name__ == "__main__":
main()
filename = "addbook.dat"
def main():
theMenu = '''
1) Add Entry
2) Remove Entry
3) Find E