diff options
| author | pants <niklasjo2004@gmail.com> | 2026-09-21 14:17:03 -0700 |
|---|---|---|
| committer | pants <niklasjo2004@gmail.com> | 2026-09-21 14:17:03 -0700 |
| commit | 7b21727285e50b0b050c4ddd70d07542229c5366 (patch) | |
| tree | 5d369153c5df5b41f3750d25479a68f20169c8ff /python/atms-310/test.py | |
init
Diffstat (limited to 'python/atms-310/test.py')
| -rwxr-xr-x | python/atms-310/test.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/python/atms-310/test.py b/python/atms-310/test.py new file mode 100755 index 0000000..14e900a --- /dev/null +++ b/python/atms-310/test.py @@ -0,0 +1,13 @@ +butt = [1,3,34,69420,"balls"] +for i in range(len(butt)): + butt[i] = butt[i]*10 + print(butt[i]) + +# example of mutating a list, cuz you can do that + +booty = (1,2,3,4,5,"nuts") +for n in range(len(butt)): + booty[n] = booty[n]*12 + print(booty[n]) + +# example of not mutating a tuple, cuz you cant do that
\ No newline at end of file |
