Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

Python Question of the Day Jan. 10, 2025

  1. Incorrect Correct No Answer was selected Invalid Answer

    Which of the following variables is created in the global namespace?

    sneakers = "Jordans"
    
    def outfit(shoe):
        pants = "joggers"
        jacket = False
        print("Shoes: " + shoe)
        print("Pants: " + pants)
        print("Jacket: " + str(jacket))
    
    def hair():
        day = input("What day is it? ")
        if day == "Friday":
            print("Wear hair up.")
        else:
            print("Wear hair down.")
    
    outfit(sneakers)
    hair()
    Python