-1

私はこれに非常に慣れていませんが、なぜこれが機能しないのかまだわかりません:

    print("Multiple Finder 2.0.1")
    print("MF2.0.1 will find the multiples of any number between point A and point B")
    multiple = input("Find the multiples of what number: ")
    startPoint = input("Enter Point A: ")
    endPoint = input("Enter Point B: ")
    x = startPoint
    while x <= endPoint:
    if x % str(multiple) == 0:
    print(x)
    x = x + 1

そして、私はこのエラーが発生します

    Traceback (most recent call last):
    File "C:/Users/---", line 8, in <module>
    if x % str(multiple) == 0:
    TypeError: not all arguments converted during string formatting
4

1 に答える 1