0

I am a intro to python student working on a coding assignment. When I began to code I realized every time I tried to test the print () function Idle would not run my code. I typed it in exactly as follows:

def main():
     print("Enter 16-digit credit card number:")

     main()

It doesn't print anything. Did I do something very wrong, or is there something else going on?

Thanks y'all

4

1 回答 1

3

取消对 main 的调用。

def main():
    print("Enter 16-digit credit card number:")

main()
于 2013-09-23T14:40:28.097 回答