Problem with my program about finding factors

前端 未结 1 1384
日久生厌
日久生厌 2021-01-28 08:33

This was a continuation to my older question The program was working fine without the

while True: main() if input(\"Try Again? (Yes/No)\").strip().upper() == \'

1条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-28 09:04

    You defined print_factors inside of main(), meaning it's not a function available to the global scope

    Give main() a body, and unindent print_factors() and it should resolve your issues

    0 讨论(0)
提交回复
热议问题