Login
Remember
Register
Ask a Question
What will the following code output?
0
votes
asked
May 11, 2023
in
Python Flask
by
sharadyadav1986
What will the following code output?
>>> word=’abcdefghij’
>>> word[:3]+word[3:]
pythoncode
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
May 11, 2023
by
sharadyadav1986
The output is ‘abcdefghij’. The first slice gives us ‘abc’, the next gives us ‘defghij’.
...