On 19 December 2012 01:05, Gina <gin...@comcast.net> wrote: > I have Python version 3. > when the program begins, it prints out the main menu and then asks you for > your choice - just like it is supposed to > you enter your choice, and the next menu pops up, and below the menu it says > "None" on the line before your next choice is asked for > i dont know why it does this or how to make it go away > > def menu_quad(): > """Display menu for quadrilaterals""" > print( > """ > Quadrilaterals > > 0 - Return to main menu > 1 - Parallelogram (area) > 2 - Trapezoid (area) > 3 - Quadrilateral(perimeter) > """ > ) > > print(menu_quad())
The menu_quad() function does not return anything. In Python this means it returns the special value None. Since you print menu_quad's return value, 'None' appears. Remove the call to print() around menu_quad() and the 'None' will go away. Oscar _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor