name = "Jane Doe"
city = "Riverside"
state = "California"
Hint, when slicing strings we specify the start index, endindex, and the stride.
Group of answer choices
name [0:4]
[ Choose] 'Jane' Doe Jane D 'Ja' 'Riversideal' River Jan Riverside Cali 'ive' Error side rnia
name[:2]
[ Choose] 'Jane' Doe Jane D 'Ja' 'Riversideal' River Jan Riverside Cali 'ive' Error side rnia
city [1:4]
[ Choose] 'Jane' Doe Jane D 'Ja' 'Riversideal' River Jan Riverside Cali 'ive' Error side rnia
city+state[1:3]
[ Choose] 'Jane' Doe Jane D 'Ja' 'Riversideal' River Jan Riverside Cali 'ive' Error side rnia
name = "Jane Doe" city = "Riverside" state = "California" Hint, when slicing strings we specify the start index, end ind
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am