Question 7 - Week 1 Practice | Prasnya
Prasnya
Continue with Google
Practice path
Dashboard
Exam
Qualifier / Quiz 1
Go to subject
Programing with python
Go to chapter
Week 1
Question 7
00:00
Est. 1 min
Marks:
+3.00
0.00
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) ```
Single correct
Easy Difficulty
27 October 2024
A
ab cd
B
ac - bd
C
ac-bd
D
All snippets are wrong.