Correct Answer: When the string contains at least one character and all the characters in it are alpha-numeric.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Python Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Python MCQ Questions
In relation to the exceptions in Python, which of the given exceptions is raised when an identifier is NOT found in the global or local namespace?
Output of the following program? i = [12, 9, 14] k = [7, 16, 11] for j in i[:]: for m in k[:]: if(j%m == 0): j = j // 2 m = m / 2 print (j, m) else: j = j + m m = m - j print (j, m)
Output of the following program? def country(*abc): if len(abc) == 1: item = abc[0] def f(obj): return obj[item] else: def f(obj): return tuple(obj[item] for item in abc) return f selection = [] selection = country(slice(2, None))('AUSTRALIA') print (selection)
Correct answer from the given options. ast = [2, 1, 3, 5, 3, 8] ast.sort() print (end='') for i in range(0, len(ast)): print(ast[i]*2, end=' ') print('\r') ast.reverse() print (end='') for i in range(1, len(ast)): print(ast[i]+3, end=' ')
This question is based on the graphic shown below. Consider the Python code in Figure 1 of the given image and choose its correct output from Figure 2.
What will be the value of a in: a = set(); a.add(['b'])?
How do you increase a datetime variable called 'dt' with three days?
Correct way to get the exception as variable in except statement?
In Python 2.x, 'round(1)' and 'abs(-1)' will produce identical results.
you can create a list of the values in a dict sorted by the value's related keys