Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

Python Question of the Day Feb. 18, 2025

  1. Incorrect Correct No Answer was selected Invalid Answer

    When run, the following program asks the user to enter a string. Then the program asks the user what character or substring they want to find in the first string they entered. Which of the following code snippets will complete the program and print “Found it!” or “Not found.” to the console?

    string = input("Enter a string: ")
    string_to_find = input("Enter what to look for: ")
    
    # Missing code goes here
    Python