0 votes
in Python Flask by
What will the following code output?

>>> word=’abcdefghij’

>>> word[:3]+word[3:]

1 Answer

0 votes
by

The output is ‘abcdefghij’. The first slice gives us ‘abc’, the next gives us ‘defghij’.

Related questions

0 votes
asked Aug 19, 2022 in GoLang by john ganales
0 votes
asked Mar 24, 2021 in JavaScript by sharadyadav1986
...