Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs1-24fa
lecture-code
Commits
f3e61c00
Commit
f3e61c00
authored
5 months ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Add new file
parent
32f86727
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
02/functions.py
+36
-0
02/functions.py
with
36 additions
and
0 deletions
+36
-0
02/functions.py
0 → 100644
View file @
f3e61c00
##############
s
=
"Adam"
# s[0] = "a"
lst
=
[
""
,
""
,
""
,
""
]
lst
[
0
]
=
True
def
philippe
(
animal
):
return
"dragon"
animal1
=
"capybara"
animal1
=
philippe
(
animal1
)
print
(
animal1
)
def
arethey
(
animal1
):
animal1
=
"dragon"
def
philippe
(
x
):
return
"dragon"
def
dogsarebetter
(
animal
):
animal
=
"robot"
animal
=
philippe
(
animal
)
return
animal
animal1
=
"capybara"
animal1
=
dogsarebetter
(
animal1
)
print
(
animal1
)
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help