... also, when Codecademy calls your function to test it, there will not be an opportunity to enter a value. Therefore, the function will likely fail if depends upon the result of an internal
You can get it to pass, however, by placing the line that calls
raw_input outside the function. You will have to modify the line, however, to convert the user's input to an
int, as follows ...
x = int(raw_input('please enter number in between 1 & 10'))
Make sure that whatever conditional block will execute abides by @stetim94 's advice to have the function
Even though relying upon user input can work here, if performed strategically, there is something a bit sketchy about depending upon
x as a global variable that stores the user input in order to pass Codecademy's test. The issue is that Codecademy's test will call the
the_flying_circus function, but will not execute the external line that gets the user input. We might expect that this will leave
x undefined during the test. However, due to the manner in which Codecademy handles memory during an exercise, it will have
x defined based on the value that you have entered after submitting your code.