Python MCQ Quize | CodeAj #pythoncoding4u

preview_player
Показать описание
Ready for a Python challenge? Test your skills with this brain-teasing question:

Answer
A) 'th'

Explanation
The code uses negative indexing to extract a substring from 'Python'. The syntax [-3:-1] means start from the 3rd last character ('h') and go up to the 1st last character ('o'), excluding the 1st last character. Therefore, the output is 'th'.

Drop your answers in the comments! Let's see who can crack this Python puzzle! Don't forget to engage with us using these hashtags:

#codeaj
#codingchallenge #codingchallenge #codingchallenge #CodingChallenge
#codingchallenge #codingchallenge #codingchallenge #codingchallenge #learncoding
#codingchallenge #codingchallenge #codingchallenge #codingchallenge #codingchallenge
Рекомендации по теме