referans sayacı örneği

This commit is contained in:
Mert Gör ☭ 2023-07-15 15:11:16 +03:00
parent f400a3195c
commit 27ec2999c4
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
def foo(x):
print(x) # RS: 4
a = 10 # RS: 1
b = a # RS: 2
c = b # RS: 3
foo(c) # RS: 3
c = 'ali' # RS: 2
b = 'veli' # RS: 1
a = 'selami' # RS: 0