Correct Answer: print r"python is fun\n"
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
When running a python script what is sys.argv[0] equal to?
In order to create a string representation of a datetime object, you would use:
The with keyword allows you to:
Python comes with a UI Toolkit in its standard library. This toolkit is:
Which Python string formatting example is correct?
Find the output of Python code and choose the correct answer from the given options. m = 7 tor = 1 if m < 0: print('0') elif m == 0: print('1') else: for i in range(1,m + 1): tor = tor*i print(tor)
Output of the following Python code? lstx = range(1, 11) print(lstx) lst1_x5 = lstx[1 : 5] print (lst1_x5) lst5_x = lstx[5 : 8] print (lst5_x) lst1_y = lstx[1 : ] print (lst1_y) lst_x5 = lstx[: 5] print (lst_x5) lst1_8_2 = lstx[1 : 8 : 2] print (lst1_8_2) lst_rev = lstx[ : : -1] print (lst_rev) lst_rev_9_5_2 = lstx[9 : 4 : -2] print (lst_rev_9_5_2)
Output of the following Python code? def abc(): y = 2018 if (y % 4) == 0: if (y % 100) == 0: if (y % 400) == 0: print('0') else: print('1') else: print('0') else: print('1') abc()he following Python code?
def abc():
This question is based on the graphic shown below. Choose the correct output of the given Python 3.4 code.
Output of the following Python code from the given options. class St: stm = 'Y' stm = 'X' def __init__(self, r): self.r = r def setdd(self, dd): self.dd = dd def getdd(self): return self.dd a = St(101) a.setdd('Y, UP') a.setdd('X') print(a.getdd()) '>m the given options.
class St: