

下記のコードを実行すると、14行目の `while x != 0: `の部分に keyboardinterrupt とエラーが出ます。どうしてでしょうか？

[code]

    d = 14
    while d <= 100:
        length = 0
        x = 10
        length = length + 1
        x = x % d
        X = x
    
        if x == 0:
            print(d)
            print(length)
            print("クリア")
    
        while x != 0:
            x = x * 10
            length = length + 1
            x = x % d
            if (x == X and (d - 1) % (length - 1) == 0) or x == 0:
                print(d)
                print(length)
                print("クリア")
                break
                
        d += 1
        x = 10
    
[/code]


CC BY-SA 4.0
2023-11-14T07:21:57.673
96778
2023-11-14T08:03:20.067
2023-11-14T08:03:20.067
3060
60418
question
python jupyter-lab
keyboardinterruptが出る原因