Prasnya
Prasnya
Prasnya
Continue with Google
Question 1 - Week 1 Practice | Prasnya
Q1
00:00
26 Oct 2025
Q1.
Consider the following Python code. What will be the output? ``` s = "programming" print(s[::-1].replace("g", "#")) ```
A
'#nimmarrop#'
B
'#nimmar#orp'
C
'programmin#'
D
'gnimmarropg'
Save
Check
Details
Q1
00:00
26 Oct 2025
Q1.
Consider the following Python code. What will be the output? ``` s = "programming" print(s[::-1].replace("g", "#")) ```
A
'#nimmarrop#'
B
'#nimmar#orp'
C
'programmin#'
D
'gnimmarropg'
Save
Check
Details