Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
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()
sneakers
sneakers, day
day
day, pants, jacket
pants
jacket
pants, jacket