How to write and run more than one code in Python IDLE?

和自甴很熟 提交于 2019-12-02 04:41:29

To answer your last question first: table is a triple list, so a list of lists containing lists. One of those lists is [['Bill', 17], ['Zoe', 14]]. Since hash_string returns an index, it retrieves one list out of table, which happens to be the one with Bill and Zoe.

Further, to run more than one function from within IDLE, you will have to create a new function (a new def my_assignment or something) that calls the other functions.

Hope this helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!