What is def in python?


I was doing the conditionals and control flow exercise and find it to be difficult as i have no idea about for what those ‘def’ used for ?


def defines a function.


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