14 Which of the following will result in an error?
str1="python
A print(str1[2]
B. str1[1]="x
C.print(str1[0-9]
D. Both (b) and (c)
Answers
Answered by
5
Answer:
all will show error because print command is not close by() and x should written as "x"
Explanation:
HOPEFULLY YOU LIKE THE ANSWER
Answered by
0
All of The above options will result in an error.
In Option A in the print statement ')' braces are not completely closed so it will throw a syntax error.
In Option B {" "} inverted commas are not closed completely closed so it will also throw a syntax error.
In Option C in the print statement ')' braces are not completely closed so it will throw a syntax error.
Similar questions