Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
retkowsky authored Sep 11, 2023
1 parent 74f959d commit 873ffa4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Code Optimization and conversion/mycode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Add three to all list members.
a = [3, 4, 5]
b = a # a and b refer to the same list object

for i in range(len(a)):
a[i] += 3 # b[i] also changes
7 changes: 7 additions & 0 deletions Code Optimization and conversion/mycode2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if a==1;
choice = 'One'
elif a == 2:
choice = "Two"
else:
choice = "Something"

0 comments on commit 873ffa4

Please sign in to comment.