Types used properly
def add(a :int, b :int) -> int:
return a+b
print(add(2, 3))
x :int = 0
x = 2
print(x)
5
2
Success: no issues found in 1 source file
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
def add(a :int, b :int) -> int:
return a+b
print(add(2, 3))
x :int = 0
x = 2
print(x)
5
2
Success: no issues found in 1 source file