freeCodeCamp/curriculum/challenges/chinese/07-scientific-computing-wit.../python-for-everybody/intermediate-strings.md

548 B

id challengeType videoId
5e7b9f070b6c005b0e76f061 11 KgT_fYLXnyk

Description

More resources: - Exercise

Tests

question:
  text: |
    What is the value of i in the following code?
    ```python
    word = "bananana"
    i = word.find("na")
    ```    
  answers:
    - |
        nanana        
    - |
        2        
    - |
        3        
    - |
        True        
    - |
        na        
  solution: 2