Why this code gets terminated in eclipse ide?


#1


#2

it doesn’t terminate? Functions are only executed when called, there are no function calls in your program, so the functions never execute


#3

@girish171996, also note that your functions each return a True or False value, but they do not print anything to the console. As @stetim94 points out, you’ll have to call the functions to produce a tangible result. In addition, you’ll need to either include print statements within your functions or test their return values and produce output based on them outside the functions if you wish to see any output displayed. That does go beyond what Codecademy is asking you to do for this exercise, but in Eclipse, you can experiment.

Remember that in Python 3, print is a function, requiring parentheses.


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.