Skip to content

Commit b5f15ce

Browse files
matusvalosprytnykDanielNoord
authored
Added assignment-from-no-return message example (#5992)
Co-authored-by: Vladyslav Krylasov <[email protected]> Co-authored-by: Daniël van Noord <[email protected]>
1 parent fa0a1ae commit b5f15ce

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def add(x, y):
2+
print(x + y)
3+
4+
5+
value = add(10, 10) # [assignment-from-no-return]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def add(x, y):
2+
return x + y
3+
4+
5+
value = add(10, 10)

0 commit comments

Comments
 (0)