console-application

How to put this in a loop

How to put this in a loop Question: I need to put this code in a loop so that you can choose whichever number first and go back to the start after whichever one you choose, but everything I’ve tried hasn’t worked and need help. peoples = { "Mary": { "name": "Mary", "budget": 100, "items": …

Total answers: 1

Is it possible to call a python function in a terminal?

Is it possible to call a python function in a terminal? Question: I want to be able to run a python program and type a function in the terminal and have the function execute. For example: I define a function in the python script def hi(): print(‘hello’) and while program is running, I type "hi()" …

Total answers: 4