[Python] My code continues to say it's wrong in the autograder due to my inputs being counted...

Discussão em 'Python' iniciado por Stack, Setembro 14, 2025.

  1. Stack

    Stack Membro Participativo

    I cannot get the autograder to stop looking at the inputs as an output. Everything I attempt to do anything it won't even act like it considers what i did

    Tried adding a new line command, tried adjusting where the inputs went. Nothing worked

    first_number = int(input("What is the first of the two numbers you would like to check?: "))
    last_number = int(input("what is the second of the two numbers you would like to check?: "))

    def number_is_a_prime_number(number):
    if number < 2:
    return False
    for i in range(2, round(number/2) + 1):
    if number % i == 0:
    return False
    return True

    def primes_to_be_listed(first, last):
    prime_list = []
    for number in range(first, last + 1):
    if number_is_a_prime_number(number):
    prime_list.append(number)
    print(f"The list of prime numbers between {first} and {last}:\n")
    for prime in prime_list:
    print(prime)

    primes_to_be_listed(first_number,last_number)

    Continue reading...

Compartilhe esta Página