Opening the paper…
Python Programming, Quiz 1
Consider the following Python code. What will be the output?s = "programming" print(s[::-1].replace("g", "#"))
Consider the following Python code. What will be the output?s = "programming" print(s\[::-1\].replace("g", "\#")) Consider the following Python code. What will be the output?x, y, z = "", "python", 0 print((x or y) and (z or len(y))) Consider the following python code. What will the value stored in x at the end of the program execution?x = 5 x = x + 2.0 x = str(x) + "3" x = x \* 2 x = \[x\] x = x + \[10\]