SyntaxFix
Write A Post
Hire A Developer
Questions
def f(x) -> str: return x+4 print(f(45)) # will give the result : 49 # or with other words '-> str' has NO effect to return type: print(f(45).__class__) <class 'int'>