id/email
password
forgot password
|
create account
about
|
help
|
prefs
ReadingBat
code reading practice
Java
Python
Kotlin
Athenian: Grab Bag
→
slice1
prev |
next
|
chance
def slice2(s): c = s[-1] return c
Function Call
Return Value
slice2('Car')
→
slice2('Truck')
→
slice2('55684')
→
slice2('Elephant')
→
slice2('Roses')
→
Check My Answers
next
|
chance
Experiment with this code on
Gitpod.io
⬅ Back