@brobes05 wrote:
Hello,
this is a simple mistake since I have not been coding in python recently, but I have simple functions that are printing strings properly. However, when I ask the function to output an integer, a = 5 for example.... I get null. I am totally stumped. Thank you.def biologistScenario(): if (inhabitants == 1): print "now generating a solution for a single Biologist..." print True a = 5 elif (inhabitants == 2): print "now generating a solution two Biologists..." elif (inhabitants == 3): print "now generating a solution three Biologists..." def studentScenario(): if (inhabitants == 1): print "now generating a solution for a single Student..." elif (inhabitants == 2): print "now generating a solution two Students..." elif (inhabitants == 3): print "now generating a solution three Students..." def main(): if (vocation == 1): biologistScenario() elif (vocation == 2): studentScenario() main()
Posts: 2
Participants: 2