New course! Every coder should learn Generative AI!
Try a free lesson+ 3
Following set of commands are executed in shell, what will be the output?
>>>str="hello" >>>str[:2] >>>
3 Answers
+ 4
"he"
you take first two chars (indices 0 and 1)
+ 1
thanks
0
Yehhh correct!