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
Q. Why are local variable names beginning with an underscore discouraged?
Q. How many times “Bye” will print:
Q. What is the maximum possible length of an identifier?
Q. The output of this Python code would be
Q. What is the output of the below code?
Q. What is the output of the following program?
Q. In Python, which of the following functions checks in a string that all characters are numbers?
Discusssion
Login to discuss.