T
Q. What is the output of the following code?
l = ['ab', 'cd'] for i in l: i.upper() print(l)
The upper() function does not modify the string. In this case, it returns a new string but we haven’t stored any.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Syntax of ‘for’ loop is given below:
Q. What is the output of the following program?
Q. What will be the datatype of the var in the below code snippet?
Q. What will be the output of the following Python code?
Q. What does the __init__() function do in Python?
Q. What is the output of the below code?
Q. Which is the correct operator for power(x^y)?
Q. The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same.
Q. What will be the output of the following code?
Q. Which of the following is incorrect variable name in Python?
Discusssion
Login to discuss.