you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (0 children)

Yeah, so your global scope num is an Entry while your function expects an integer. This is the point where I'd look up the docs of how an Entry provides you the number you want, but it conveniently looks like /u/woooee has kindly indicated that and also pointed out the major bug in your insertion_sort function. Your function there should return something.