This website works better with JavaScript.
Explore
Help
Sign In
bill
/
ChocoPy
Watch
1
Star
0
Fork
You've already forked ChocoPy
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tag:
Branch:
Tree:
master
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from 'master'
${ noResults }
ChocoPy
/
pa3-tests
/
core
/
str_get_element_oob_1.py
9 lines
105 B
Raw
Permalink
Blame
History
x
:
str
=
"
abc
"
a
:
str
=
"
"
def
str_get
(
s
:
str
,
i
:
int
)
-
>
str
:
return
s
[
i
]
a
=
str_get
(
x
,
-
1
)
print
(
a
)
Reference in new issue
View Git Blame
Copy Permalink