Skip to content

Commit 8f69f0a

Browse files
matusvalosprytnyk
andcommitted
Added cell-var-from-loop message example
Co-authored-by: Vladyslav Krylasov <vladyslav.krylasov@gmail.com>
1 parent 1fa9fba commit 8f69f0a

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
def foo(numbers):
2+
for i in numbers:
3+
def bar():
4+
print(i) # [cell-var-from-loop]
5+
bar()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def bar(x):
2+
print(x)
3+
4+
5+
def foo(numbers):
6+
for i in numbers:
7+
bar(i)

0 commit comments

Comments
 (0)