Cursos /
Introduction to Python
Challenge
Tarefa
You're given the string "This is string for learning" stored in the variable test_str
. Your tasks are to:
- Retrieve and display the first character of the
test_str
(using the firstprint()
function). - Retrieve and display the last character of the
test_str
(using the secondprint()
function). - Retrieve and display the word
string
from thetest_str
variable.
Tudo estava claro?
Seção 2. Capítulo 11
Conteúdo do Curso
Introduction to Python
3. Conditional Statements
Boolean Data TypeChallenge: Comparison OperatorsCombining ConditionsChallenge: Logical OperatorsMembership Operators and Types ComparisonSimple if/else ExpressionsChallenge: Grocery StoreChallenge: Odd and Evenif/elif/else ExpressionsChallenge: Grocery Store ExtendedChallenge: Positive, Negative or Zero
Introduction to Python
Challenge
Tarefa
You're given the string "This is string for learning" stored in the variable test_str
. Your tasks are to:
- Retrieve and display the first character of the
test_str
(using the firstprint()
function). - Retrieve and display the last character of the
test_str
(using the secondprint()
function). - Retrieve and display the word
string
from thetest_str
variable.
Tudo estava claro?
Seção 2. Capítulo 11