Python Question / Quiz; What is the output of the following Python code, and why? Comment your answers below!
46
11
114
19
11천
이 트윗은 더 이상 사용할 수 없습니다.
0
0
0
0
0
"python"[2:5] creates a substring of "python", starting at index 2, and stopping before 5. The indices are: 0 p 1 y 2 t <-- start 3 h 4 o 5 n <-- stop (excluded) Thus, the result is "tho" Hence, the print will output tho and that's the answer
1
0
0
0
63
My bad, thanks for pointing that out. It has to be B.
1
0
1
0
7
United States 트렌드
- 1. White Sox 14.8K posts
- 2. Ugarte 13.9K posts
- 3. #AskFFT 1,031 posts
- 4. Morgan Rogers 3,687 posts
- 5. Yoro 6,289 posts
- 6. Joan Garcia 13K posts
- 7. Murakami 17.6K posts
- 8. Happy Winter Solstice 11.8K posts
- 9. #AVLMUN 5,526 posts
- 10. Cunha 12K posts
- 11. Estime 6,632 posts
- 12. #sundayvibes 5,635 posts
- 13. Sesko 9,205 posts
- 14. Good Sunday 76K posts
- 15. Lamine 33.6K posts
- 16. Full PPR 1,837 posts
- 17. Dorgu 4,906 posts
- 18. Villarreal 23.8K posts
- 19. #MUFC 12.1K posts
- 20. Michael Wilson 1,253 posts
Loading...
Something went wrong.
Something went wrong.