What is the main difference between class and def in python? Can a class in python interact with django ui (buttons)? I would like to return two values from a function in two separate variables. What would you expect it to look like on the calling end? You can't write a = select_choice();
B = select_choice().