Q7.Consider the input for the first line of the following code snippet to be `"abcd"`, and select the correct option from the choices below.
```
word = input()
new_word = word[0::2] + "-"
new_word += word[1::2]
print(new_word)
```
Save
Check
Details
Q7
27 Oct 2024
Q7.Consider the input for the first line of the following code snippet to be `"abcd"`, and select the correct option from the choices below.
```
word = input()
new_word = word[0::2] + "-"
new_word += word[1::2]
print(new_word)
```