Q.1.
What will be the output of the following Python code? x = 'abcd' for i in x: print(i) x.upper()
Q.2.
What will be the output of the following Python code? x = 'abcd' for i in x: print(i.upper())
Q.3.
What will be the output of the following Python code? x = 'abcd' for i in range(x): print(i)
Q.4.
What will be the output of the following Python code? x = 'abcd' for i in range(len(x)): print(i)
Q.5.
What will be the output of the following Python code? x = 'abcd' for i in range(len(x)): print(i.upper())
Q.6.
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): i.upper() print (x)
Q.7.
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): x[i].upper() print (x)
Q.8.
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): i[x].upper() print (x)
Q.9.
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): x = 'a' print(x)
Q.10.
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): print(x) x = 'a'