0

I was checking some Python codes in Github and saw that there are some -> notation in function definitions, something like this:

def func1(a,b) -> int:
  returen a+b

What does it mean exactly? is it related to output type of function?

I searched the stackoverflow but I could not find any specific description about this. It would be appreciated if you could provide any documentation link.

Masoud
  • 21
  • 6
  • Thanks to Stackoverflow, a detailed answer is in: https://stackoverflow.com/questions/14379753/what-does-mean-in-python-function-definitions – Masoud Dec 11 '22 at 07:05

0 Answers0